Skip to content

Commit

Permalink
Don't include template styles twice. splitbrain#17
Browse files Browse the repository at this point in the history
  • Loading branch information
samwilson committed Mar 27, 2012
1 parent 47b0d67 commit d371e7e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions action.php
Expand Up @@ -103,7 +103,6 @@ function convert(&$event, $param) {
$html .= $this->load_css();
$html .= '@page { size:auto; '.$template['page'].'}';
$html .= '@page :first {'.$template['first'].'}';
$html .= $template['css'];
$html .= '</style>';
$html .= '</head><body>';
$html .= $template['html'];
Expand Down Expand Up @@ -166,7 +165,6 @@ protected function load_template($title){
// this is what we'll return
$output = array(
'html' => '',
'css' => '',
'page' => '',
'first' => '',
'cite' => '',
Expand Down Expand Up @@ -229,11 +227,6 @@ protected function load_template($title){
$output['cite'] = str_replace(array_keys($replace), array_values($replace), $output['cite']);
}

// set custom styles
if(file_exists(DOKU_PLUGIN.'dw2pdf/tpl/'.$tpl.'/style.css')){
$output['css'] = file_get_contents(DOKU_PLUGIN.'dw2pdf/tpl/'.$tpl.'/style.css');
}

return $output;
}

Expand Down

0 comments on commit d371e7e

Please sign in to comment.