]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_rewrite.php
Re-added height, but smaller to make most menus appear shorter
[mailer.git] / inc / modules / admin / what-config_rewrite.php
index 201a54f5937b1b8a3f1905c81fbf0cf5dbfc8481..b10890133e65087beb890bb953c5c1194e52438d 100644 (file)
@@ -61,12 +61,15 @@ if (isFormSent('save_config')) {
        // Save settings
        adminSaveSettingsFromPostData();
 } else {
+       // Explode all modules
+       $MODs = explode(':', getConfig('rewrite_skip'));
+
        // 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__);
+       $result = sqlQuery("SELECT `module`, `title` FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY `module` ASC", __FILE__, __LINE__);
        $OUT = '';
-       while ($content = SQL_FETCHARRAY($result)) {
+       while ($content = sqlFetchArray($result)) {
                // Already registered module?
-               if (isInString($content['module'], getConfig('rewrite_skip'))) {
+               if (in_array($content['module'], $MODs)) {
                        // Found
                        $y = ' checked="checked"';
                        $n = '';
@@ -85,7 +88,7 @@ if (isFormSent('save_config')) {
        } // END - while
 
        // Free memory
-       SQL_FREERESULT($result);
+       sqlFreeResult($result);
 
        // Load main template
        loadTemplate('admin_config_rewrite', FALSE, $OUT);