1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 05:22:59 +00:00

Fix awkward invisible PHP warning on some error pages

This commit is contained in:
Starbeamrainbowlabs 2017-07-29 10:51:06 +01:00
parent ecd155c4d4
commit b687271af5

View file

@ -1089,7 +1089,9 @@ class page_renderer
$result = self::get_css_as_html();
$result .= self::getJS();
if(module_exists("feature-search"))
// We can't use module_exists here because sometimes global $modules
// hasn't populated yet when we get called O.o
if(class_exists("search"))
$result .= "\t\t<link rel='search' type='application/opensearchdescription+xml' href='?action=opensearch-description' title='$settings->sitename Search' />\n";
if(!empty($settings->enable_math_rendering))