mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 05:22:59 +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;
|
global $settings, $defaultCSS;
|
||||||
|
|
||||||
$result = "";
|
$result = "";
|
||||||
$css = "\n";
|
$css = "";
|
||||||
if(self::is_css_url($settings->css)) {
|
if(self::is_css_url($settings->css)) {
|
||||||
if($settings->css[0] === "/") // Push it if it's a relative resource
|
if($settings->css[0] === "/") // Push it if it's a relative resource
|
||||||
self::add_server_push_indicator("style", $settings->css);
|
self::add_server_push_indicator("style", $settings->css);
|
||||||
|
@ -328,9 +328,11 @@ class page_renderer
|
||||||
}
|
}
|
||||||
$css .= "\n/*** Custom CSS ***/\n";
|
$css .= "\n/*** Custom CSS ***/\n";
|
||||||
$css .= !empty($settings->optimize_pages) ? minify_css($settings->css_custom) : $settings->css_custom;
|
$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