X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Faction-themes.php;h=8cb3c43166bdda9caadafcc22b45be9ec423022e;hp=c06b4d9b2193d1c7d9f1336f9654c43044e1e91a;hb=b8c86fa12322603c24a88ea2b0fd3dbeba612752;hpb=ad851a23313d8ac6489a759a0f3d62e3bc6f4682 diff --git a/inc/modules/member/action-themes.php b/inc/modules/member/action-themes.php index c06b4d9b21..8cb3c43166 100644 --- a/inc/modules/member/action-themes.php +++ b/inc/modules/member/action-themes.php @@ -38,7 +38,7 @@ if (!defined('__SECURITY')) { } elseif (!IS_MEMBER()) { LOAD_URL("modules.php?module=index"); } elseif ((!EXT_IS_ACTIVE("theme")) && (!IS_ADMIN())) { - ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "theme"); + addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "theme"); return; } @@ -48,7 +48,7 @@ if (defined('__THEME_SELECTION_CONTENT')) return false; // Load all active designs (or all if admin) $whereStatement = ""; $OUT = ""; if (!IS_ADMIN()) $whereStatement = " WHERE theme_active='Y'"; -$result_themes = SQL_QUERY("SELECT theme_path FROM `"._MYSQL_PREFIX."_themes`".$whereStatement, __FILE__, __LINE__); +$result_themes = SQL_QUERY("SELECT theme_path FROM `{!_MYSQL_PREFIX!}_themes`".$whereStatement, __FILE__, __LINE__); $num_themes = SQL_NUMROWS($result_themes); if ($num_themes > 1) { @@ -63,7 +63,7 @@ if ($num_themes > 1) { $OUT = LOAD_TEMPLATE("theme_one", true); } elseif (IS_ADMIN()) { // If there is no theme installed and there's an admin notify him! - $OUT = LOAD_TEMPLATE("admin_settings_saved", true, "".ADMIN_NO_THEME_INSTALLED_WARNING.""); + $OUT = LOAD_TEMPLATE("admin_settings_saved", true, "
{--ADMIN_NO_THEME_INSTALLED_WARNING--}
"); } // Remember