skip Smarty Globals for API pages
This commit is contained in:
parent
baeae10027
commit
c85b5f0207
@ -79,7 +79,7 @@ $smarty->assign("PAGE", $page);
|
||||
$smarty->assign("ACTION", $action);
|
||||
|
||||
// Now with all loaded and processed, setup some globals we need for smarty templates
|
||||
require_once(INCLUDE_DIR . '/smarty_globals.inc.php');
|
||||
if ($page != 'api') require_once(INCLUDE_DIR . '/smarty_globals.inc.php');
|
||||
|
||||
// Load debug information into template
|
||||
$debug->append("Loading debug information into template", 4);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user