From: stevetruckstuff Date: Fri, 29 Sep 2006 19:56:12 +0000 (+0000) Subject: Template object is referenced in load_prefs.php if icons are enabled. Need to includ... X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=d0b6165914384f49168f1dc395eb735f262ce9e4 Template object is referenced in load_prefs.php if icons are enabled. Need to include template class files before loaded load_prefs.php git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11769 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/include/init.php b/include/init.php index 4f5112fb..d5c4df67 100644 --- a/include/init.php +++ b/include/init.php @@ -449,6 +449,7 @@ switch ($sInitLocation) { /** * initializing user settings */ + require(SM_PATH . 'class/template/Template.class.php'); require(SM_PATH . 'include/load_prefs.php'); // i do not understand the frames language cookie story @@ -533,7 +534,7 @@ switch ($sInitLocation) { /** * Initialize the template object */ -require(SM_PATH . 'class/template/Template.class.php'); +require_once(SM_PATH . 'class/template/Template.class.php'); /* * $sTemplateID is not initialized when a user is not logged in, so we