From 64ac34f8ebcfef05d9b273dd2be693717483ba16 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 20 Oct 2008 13:15:33 +0000 Subject: [PATCH] More fixes for admin functions, thanks to Piter01 --- img.php | 2 +- inc/databases.php | 2 +- inc/libs/admins_functions.php | 18 +++++------------- inc/modules/admin/what-config_admins.php | 2 +- inc/theme-manager.php | 2 +- 5 files changed, 9 insertions(+), 17 deletions(-) diff --git a/img.php b/img.php index 64919e4066..54b2173947 100644 --- a/img.php +++ b/img.php @@ -1,6 +1,6 @@ 0)) { LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_ADMINS_ENTRIES_DELETED); } elseif (isset($_POST['add'])) { // Check if everything is fine... - $mode = GET_ADMIN_DEFAULT_ACL(GET_ADMIN_LOGIN(bigintval($_POST['admin_id']))); + $mode = GET_ADMIN_DEFAULT_ACL(bigintval($_POST['admin_id'])); // Default ACL is false $ACL = false; diff --git a/inc/theme-manager.php b/inc/theme-manager.php index 2ba2d28b77..44b82d17dd 100644 --- a/inc/theme-manager.php +++ b/inc/theme-manager.php @@ -253,7 +253,7 @@ function GET_CURR_THEME_NAME () { if (isset($_CONFIG['cache_hits'])) { $_CONFIG['cache_hits']++; } else { $_CONFIG['cache_hits'] = 1; } } elseif (GET_EXT_VERSION("cache") != "0.1.8") { // Check if current theme is already imported or not - $result = SQL_QUERY_ESC("SELECT theme_name FROM "._MYSQL_PREFIX."_themes WHERE theme_path='%s' AND theme_name='Y' LIMIT 1", + $result = SQL_QUERY_ESC("SELECT theme_name FROM "._MYSQL_PREFIX."_themes WHERE theme_path='%s' AND theme_active='Y' LIMIT 1", array($name), __FILE__, __LINE__); // Is the theme active and installed? -- 2.39.5