[Fusionforge-commits] r9642 - trunk/gforge/www/include

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Apr 29 11:37:51 CEST 2010


Author: lolando
Date: 2010-04-29 11:37:50 +0200 (Thu, 29 Apr 2010)
New Revision: 9642

Modified:
   trunk/gforge/www/include/pre.php
Log:
Load the Theme class even when not logged in

Modified: trunk/gforge/www/include/pre.php
===================================================================
--- trunk/gforge/www/include/pre.php	2010-04-28 22:41:42 UTC (rev 9641)
+++ trunk/gforge/www/include/pre.php	2010-04-29 09:37:50 UTC (rev 9642)
@@ -142,11 +142,11 @@
 	if (session_loggedin()) {
 		$LUSER =& session_get_user();
 		$LUSER->setUpTheme();
-		require_once forge_get_config('themes_root').forge_get_config('default_theme').'/Theme.class.php';
 		putenv ('TZ='. $LUSER->getTimeZone());
 		header ('Cache-Control: private');
 	}
 
+	require_once forge_get_config('themes_root').forge_get_config('default_theme').'/Theme.class.php';
 	$HTML = new Theme () ;
 } else {		     // Script run from cron or a command line
 	require_once $gfwww.'include/squal_exit.php';




More information about the Fusionforge-commits mailing list