]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-themes.php
New wrapper functions enableBlockMode() and isBlockModeEnabled() introduced
[mailer.git] / inc / modules / member / what-themes.php
index 26865409cbba09a67049a5dd262e7aad06c9744c..45194c5b2fae095abc0010cebb8ed172b7983de2 100644 (file)
@@ -43,7 +43,7 @@ if (!defined('__SECURITY')) {
 } elseif (!IS_MEMBER()) {
        redirectToUrl('modules.php?module=index');
 } elseif ((!EXT_IS_ACTIVE('theme')) && (!IS_ADMIN())) {
-       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'theme'));
+       addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('theme'));
        return;
 }
 
@@ -95,6 +95,9 @@ while ($entry = readdir($handle)) {
        } // END - if
 } // END - while
 
+// Remove last theme data
+unset($GLOBALS['theme_data']);
+
 // Close directory
 closedir($handle);
 
@@ -122,16 +125,16 @@ foreach ($THEMES['theme_unix'] as $key => $unix) {
   <td class=\"switch_sw".$SW." bottom2\" align=\"center\">v".$THEMES['theme_ver'][$key]."</td>
 </tr>\n";
        $SW = 3 - $SW;
-}
+} // END - foreach
 
 if (empty($OUT)) {
-       // No themes found???
+       // No themes found???
        $OUT = "<tr>
   <td colspan=\"5\" class=\"bottom2\" height=\"80\">
     ".LOAD_TEMPLATE('admin_settings_saved', true, getMessage('MEMBER_NO_THEMES_FOUND'))."
   </td>
 </tr>\n";
-}
+} // END - if
 define('__THEME_LIST', $OUT);
 
 // Load template