]> git.mxchange.org Git - mailer.git/commitdiff
Extension ext-theme doesn't need to be activated in admin area
authorRoland Häder <roland@mxchange.org>
Thu, 17 Jan 2013 01:09:58 +0000 (01:09 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 17 Jan 2013 01:09:58 +0000 (01:09 +0000)
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