From f2cb693a8358c3280f9c8720f57bb00a57304b06 Mon Sep 17 00:00:00 2001 From: markleeds Date: Tue, 22 Apr 2008 14:17:33 +0000 Subject: [PATCH] Added line to allow for access to webroot variable in templates. --- library/classes/Controller.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/classes/Controller.class.php b/library/classes/Controller.class.php index 44ce1446b..7307d3b6f 100644 --- a/library/classes/Controller.class.php +++ b/library/classes/Controller.class.php @@ -22,6 +22,7 @@ class Controller extends Smarty { $this->assign("FOOTER", ""); $this->assign("CONTROLLER", "controller.php?"); $this->assign("CONTROLLER_THIS", "controller.php?" . $_SERVER['QUERY_STRING']); + $this->assign("WEBROOT", $GLOBALS['webroot']); } function set_current_action($action) { -- 2.11.4.GIT