]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_rewrite.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / modules / admin / what-config_rewrite.php
index 59507e33fcf57dbe67655139e19dacf0b936192f..dc38a0da5bd90425dfc6fac889aa4ea643a9e89e 100644 (file)
@@ -43,14 +43,14 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
 
 if (IS_FORM_SENT()) {
        // Generate string
        $MODs = array();
        foreach (REQUEST_POST('mod') as $mod => $sel) {
                // Now you can never deselect the admin module, bah!!! ;-)
-               if (($sel == "Y") || ($mod == "admin")) {
+               if (($sel == 'Y') || ($mod == 'admin')) {
                        // Add module to queue
                        $MODs[] = $mod;
                }
@@ -65,7 +65,7 @@ if (IS_FORM_SENT()) {
 } else {
        // Load existing modules and generate TR rows for the template
        $result = SQL_QUERY("SELECT module, title FROM `{!_MYSQL_PREFIX!}_mod_reg` ORDER BY module", __FILE__, __LINE__);
-       $OUT = ""; $SW = 2;
+       $OUT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result)) {
                // Set title to three dashes when no title is supplied
                if (empty($content['title'])) $content['title'] = "---";
@@ -73,12 +73,12 @@ if (IS_FORM_SENT()) {
                // Already registered module?
                if (ereg($content['module'], getConfig('rewrite_skip'))) {
                        // Found
-                       $y = " checked=\"checked\"";
-                       $n = "";
+                       $y = ' chkecked="checked"';
+                       $n = '';
                } else {
                        // Not found
-                       $y = "";
-                       $n = " checked=\"checked\"";
+                       $y = '';
+                       $n = ' chkecked="checked"';
                }
 
                // Remember data in array for the dynamic row template