X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-theme_import.php;h=8d8e5de725bf5bc60a714edd222ed0863588d776;hp=94f4551670e0ba437200547d961221fee9990f5b;hb=d90ace91b5fce766924e587d20450f45318ccc64;hpb=64ac34f8ebcfef05d9b273dd2be693717483ba16;ds=sidebyside diff --git a/inc/modules/admin/what-theme_import.php b/inc/modules/admin/what-theme_import.php index 94f4551670..8d8e5de725 100644 --- a/inc/modules/admin/what-theme_import.php +++ b/inc/modules/admin/what-theme_import.php @@ -35,6 +35,9 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); +} elseif (!EXT_IS_ACTIVE("theme")) { + ADD_FATAL(sprintf(EXTENSION_PROBLEM_NOT_INSTALLED, "theme")); + return; } // Add description as navigation point @@ -54,7 +57,7 @@ if (!empty($_POST['theme'])) { include($file); // Register it ith the exchange - $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_themes (theme_path, theme_active, theme_ver, theme_name) + $result = SQL_QUERY_ESC("INSERT INTO `"._MYSQL_PREFIX."_themes` (`theme_path`, `theme_active`, `theme_ver`, `theme_name`) VALUES ('%s','N','%s','%s')", array($_POST['theme'], $THEME_VERSION, $THEME_NAME), __FILE__, __LINE__);