]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/theme_functions.php
Extension ext-theme doesn't need to be activated in admin area
[mailer.git] / inc / libs / theme_functions.php
index 3fce3a96380080246df22b4281bbd66d98f6ef15..5fbcfb2edd6f6ef4d396a519eedb2ebbf284ed98 100644 (file)
@@ -154,7 +154,7 @@ function getThemeVersion ($name) {
 // Checks whether a theme is found in db
 function ifThemeExists ($name) {
        // Get theme and is it not nul?
-       return ((isExtensionActive('theme')) && (getThemeId($name) > 0));
+       return (((isExtensionActive('theme')) || (getModule() == 'admin')) && (getThemeId($name) > 0));
 }
 
 // Checks if a theme is active