From: Steve B. <ste...@us...> - 2006-08-24 20:31:47
|
Update of /cvsroot/squirrelmail/squirrelmail/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv20775/src Modified Files: style.php Log Message: Template handling is now done in init.php, so this block is no longer needed. In fact, it screws up handling of different templates when users aren't logged in. Index: style.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/src/style.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -w -r1.13 -r1.14 --- style.php 9 Aug 2006 19:53:55 -0000 1.13 +++ style.php 24 Aug 2006 20:31:43 -0000 1.14 @@ -33,21 +33,6 @@ $fontsets=array(); } -/** - * get template name and set used template directory - * - * Existing file check has been moved into the template object, so it is - * not neccesary to do file_exists() here. - * */ -if (sqgetGlobalVar('templateid',$templateid,SQ_GET)) { - $sTplDir = SM_PATH.'templates/'.basename($templateid).'/'; -} else { - $sTplDir = SM_PATH.'templates/default/'; -} - -$oTemplate = new Template($sTplDir); -/** end block copy */ - /* set default colors in case color theme is not full */ $color = array(); $color[0] = '#dcdcdc'; // (light gray) TitleBar |