X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ftheme-manager.php;h=44b82d17ddaae68eac654c5f3efdb598ce073d55;hp=2ba2d28b774bd4dc01662d21847721661fb3fa47;hb=64ac34f8ebcfef05d9b273dd2be693717483ba16;hpb=0211214187aa95bd5726ecc7dac13dfe0f699c63 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?