From c85b5f02075be4649e42f0aca9bb39f68ad784f9 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 20 Sep 2013 18:13:47 +0200 Subject: [PATCH] skip Smarty Globals for API pages --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index a5a3fd72..f8ccb438 100644 --- a/public/index.php +++ b/public/index.php @@ -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);