mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Fix awkward invisible PHP warning on some error pages
This commit is contained in:
parent
ecd155c4d4
commit
b687271af5
1 changed files with 3 additions and 1 deletions
4
core.php
4
core.php
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue