mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Bugfix: Correct CSS rendering
This commit is contained in:
parent
e91852ca68
commit
f543321304
1 changed files with 5 additions and 3 deletions
|
@ -307,7 +307,7 @@ class page_renderer
|
|||
global $settings, $defaultCSS;
|
||||
|
||||
$result = "";
|
||||
$css = "\n";
|
||||
$css = "";
|
||||
if(self::is_css_url($settings->css)) {
|
||||
if($settings->css[0] === "/") // Push it if it's a relative resource
|
||||
self::add_server_push_indicator("style", $settings->css);
|
||||
|
@ -328,9 +328,11 @@ class page_renderer
|
|||
}
|
||||
$css .= "\n/*** Custom CSS ***/\n";
|
||||
$css .= !empty($settings->optimize_pages) ? minify_css($settings->css_custom) : $settings->css_custom;
|
||||
$css .= "\n/******************/\n";
|
||||
$css .= "\n/******************/";
|
||||
}
|
||||
$result .= "<style>$css</style>\n";
|
||||
$result .= "<style>\n$css\n</style>\n";
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue