X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-theme_edit.php;h=f69e0a4da27d7f2e617da0c6ae4f93eb35c69cd0;hp=f5de9a864ada2ef6d384912d9b00abcc6cb8eb1c;hb=e71e9e1380d65ccd06beef6fbc594bec10371f5f;hpb=bb47f1005eabd32848497388bf0e99012b6fd1cf diff --git a/inc/modules/admin/what-theme_edit.php b/inc/modules/admin/what-theme_edit.php index f5de9a864a..f69e0a4da2 100644 --- a/inc/modules/admin/what-theme_edit.php +++ b/inc/modules/admin/what-theme_edit.php @@ -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");