Skip to content

Commit

Permalink
Fixed issue: getGlobalSetting not available in Installer
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Dec 15, 2017
1 parent 45f2f25 commit 64ac057
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions application/core/LSYii_ClientScript.php
Expand Up @@ -400,9 +400,13 @@ public function renderHead(&$output)
}

//Propagate our debug settings into the javascript realm

$debugFrontend = (int) getGlobalSetting('javascriptdebugfrntnd');
$debugBackend = (int) getGlobalSetting('javascriptdebugbcknd');
if(function_exists('getGlobalSetting')) {
$debugFrontend = (int) getGlobalSetting('javascriptdebugfrntnd');
$debugBackend = (int) getGlobalSetting('javascriptdebugbcknd');
} else {
$debugFrontend = 0;
$debugBackend = 0;
}

$html .= "<script type='text/javascript'>window.debugState = {frontend : (".$debugFrontend." === 1), backend : (".$debugBackend." === 1)};</script>";

Expand Down

0 comments on commit 64ac057

Please sign in to comment.