]> git.mxchange.org Git - mailer.git/commitdiff
Missing theme extension fixed in theme_edit/theme_import
authorRoland Häder <roland@mxchange.org>
Mon, 20 Oct 2008 22:04:43 +0000 (22:04 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 20 Oct 2008 22:04:43 +0000 (22:04 +0000)
inc/databases.php
inc/modules/admin/what-theme_edit.php
inc/modules/admin/what-theme_import.php

index e6ac4fb78ce052a61d26706d0955e43ea2a1414a..d169b1e0acc711ae48370263d25c12f9fb333279 100644 (file)
@@ -114,7 +114,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // This current patch level
-define('CURR_SVN_REVISION', "517");
+define('CURR_SVN_REVISION', "518");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index b5a697ffcc3f34e5d018a38491e23c9cb49dd116..7a9024674ed0e38d04001c8d3bc7017d94dee896 100644 (file)
@@ -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
index 94f4551670e0ba437200547d961221fee9990f5b..8d8e5de725bf5bc60a714edd222ed0863588d776 100644 (file)
@@ -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__);