From: Roland Häder Date: Thu, 17 Jan 2013 01:09:58 +0000 (+0000) Subject: Extension ext-theme doesn't need to be activated in admin area X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=023d240bd9154811e5ebca23892ed06fefc72c08;p=mailer.git Extension ext-theme doesn't need to be activated in admin area --- diff --git a/inc/libs/theme_functions.php b/inc/libs/theme_functions.php index 3fce3a9638..5fbcfb2edd 100644 --- a/inc/libs/theme_functions.php +++ b/inc/libs/theme_functions.php @@ -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