Cookie code removed, rewritten, internal URLs are now relative (see LOAD_URL()),...
[mailer.git] / inc / modules / admin / what-theme_edit.php
index f5de9a864ada2ef6d384912d9b00abcc6cb8eb1c..f69e0a4da27d7f2e617da0c6ae4f93eb35c69cd0 100644 (file)
@@ -82,7 +82,7 @@ if ($SEL > 0) {
        $POST['default_theme'] = SQL_ESCAPE($_GET['default_theme']);
 
        // Set session
-       set_session("mxchange_theme", $POST['default_theme']);
+       set_session('mxchange_theme', $POST['default_theme']);
 
        // Set it in config and current theme as well
        global $currTheme;
@@ -99,10 +99,8 @@ $THEME_MODE = "test";
 // Generate output lines for the template
 $OUT = ""; $SW = 2;
 $result = SQL_QUERY("SELECT id, theme_path, theme_active, theme_ver, theme_name FROM `"._MYSQL_PREFIX."_themes` ORDER BY theme_path", __FILE__, __LINE__);
-if (SQL_NUMROWS($result) > 0)
-{
-       while(list($id, $unix, $active, $ver, $name) = SQL_FETCHROW($result))
-       {
+if (SQL_NUMROWS($result) > 0) {
+       while(list($id, $unix, $active, $ver, $name) = SQL_FETCHROW($result)) {
                // Load theme in test mode
                require(PATH."theme/".$unix."/theme.php");