]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-theme_check.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / modules / admin / what-theme_check.php
index cda1cf32a3617421018fc8b54a221c4d6c462e75..3dbc718fde84be4126db5f030230e2c2ecac2970 100644 (file)
@@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
 
 // Normally we want the overview of all registered theme_check
 $mode = "overview";
@@ -67,7 +67,7 @@ if (($response[count($response) - 1] == "[EOF]") && ($response[0] != "[EOF]")) {
        // Get count of theme_check for validation
        $count = trim($response[count($response) - 2]);
        foreach ($response as $idx => $value) {
-               $value = str_replace("\n", "", $value); $ver = "";
+               $value = str_replace("\n", '', $value); $ver = '';
 
                // Leave loop when data is invalid or EOF?
                if ((substr($value, 0, 6) == "theme-") && (substr($value, -4) == ".zip")) {
@@ -118,7 +118,7 @@ if (($response[count($response) - 1] == "[EOF]") && ($response[0] != "[EOF]")) {
                array_pk_sort($THEMES, array("cver", "fname"), 0, 1);
 
                // Extensions where found which are not downloaded and installed
-               $OUT = ""; $SW = 2; $TSIZE = 0;
+               $OUT = ''; $SW = 2; $TSIZE = 0;
                foreach ($THEMES['fname'] as $idx => $name) {
                        // Generate download link
                        $LINK = SERVER_URL."/themes/theme-".$name.".zip";
@@ -152,7 +152,7 @@ if (($response[count($response) - 1] == "[EOF]") && ($response[0] != "[EOF]")) {
        }
 } else {
        // No theme where found
-       LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_THEME_NOTHING_FOUND'));
+       LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_THEME_NOTHING_FOUND'));
 }
 
 //