} 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;
}
} // END - if
} // END - while
+// Remove last theme data
+unset($GLOBALS['theme_data']);
+
// Close directory
closedir($handle);
<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