A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / modules / admin / what-theme_import.php
index 6d27c505d7c2dd2b1e8a1d3f1609aae91f1c7987..e3b86ad2ec95f14e81f78cf0cdbd7c8010329529 100644 (file)
 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
-} elseif (!EXT_IS_ACTIVE("theme")) {
-       addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "theme");
+} elseif (!EXT_IS_ACTIVE('theme')) {
+       addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'theme');
        return;
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
 
 // Switch to testing mode
-$GLOBALS['theme_mode'] = "test";
+$GLOBALS['theme_mode'] = 'test';
 
 // Import selected theme if not present
 if (REQUEST_ISSET_POST(('theme'))) {
@@ -81,7 +81,7 @@ VALUES ('%s','N','%s','%s')",
        }
 
        // Output message
-       LOAD_TEMPLATE("admin_settings_saved", false, $msg);
+       LOAD_TEMPLATE('admin_settings_saved', false, $msg);
 } // END - if
 
 // Initialize array
@@ -122,7 +122,7 @@ closedir($handle);
 array_pk_sort($THEMES, array("theme_name"));
 
 // Generate output lines for the template
-$OUT = ""; $SW = 2;
+$OUT = ''; $SW = 2;
 foreach ($THEMES['theme_unix'] as $key => $unix) {
        // Already installed is default
        $FOUND = "<div class=\"admin_note\">{--ADMIN_THEME_ALREADY_INSTALLED--}</div>";
@@ -155,7 +155,7 @@ foreach ($THEMES['theme_unix'] as $key => $unix) {
 
 if (empty($OUT)) {
        // No themes found???
-       $OUT .= LOAD_TEMPLATE("admin_theme_import_none", true, LOAD_TEMPLATE("admin_settings_saved", true, getMessage('ADMIN_NO_THEMES_FOUND')));
+       $OUT .= LOAD_TEMPLATE("admin_theme_import_none", true, LOAD_TEMPLATE('admin_settings_saved', true, getMessage('ADMIN_NO_THEMES_FOUND')));
 } // END - if
 
 // Set the generated list