]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-adminedit.php
Fixed also usage of previously renamed fields as they must be the same
[mailer.git] / inc / modules / admin / what-adminedit.php
index 84ccdcfe2b04d73214c6094612b11c49e4100314..c446faeccf6bf9ba15a6ef516d05554c006fa552 100644 (file)
@@ -60,7 +60,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        foreach (postRequestElement('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $count++;
-                       $result = SQL_QUERY_ESC("SELECT `title`,`action`,`what`,`descr` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `title`, `action`, `what`, `descr` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
                                array(bigintval($sel)), __FILE__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // Entry found so we load the stuff...
@@ -77,7 +77,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                                );
 
                                // Load row template
-                               $OUT .= loadTemplate('admin_edit_admin_menu_row', true, $content);
+                               $OUT .= loadTemplate('admin_edit_admin_menu_row', TRUE, $content);
                        } else {
                                // Entry not found?
                                $content = array(
@@ -85,7 +85,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                                );
 
                                // Load row template
-                               $OUT .= loadTemplate('admin_menu_404_row', true, $content);
+                               $OUT .= loadTemplate('admin_menu_404_row', TRUE, $content);
                        }
 
                        // Free result and switch color
@@ -99,7 +99,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        $content['count'] = $count;
 
        // Load template
-       loadTemplate('admin_edit_admin_menu_form', false, $content);
+       loadTemplate('admin_edit_admin_menu_form', FALSE, $content);
 } elseif ((isFormSent('delete')) && (ifPostContainsSelections()) && (!isDemoModeActive())) {
        // Prepare misc content
        $content['sub'] = $subMenu;
@@ -122,13 +122,13 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                                        'count' => $count,
                                        'sel'   => $sel,
                                );
-                               $OUT .= loadTemplate('admin_delete_admin_menu_row', true, $content);
+                               $OUT .= loadTemplate('admin_delete_admin_menu_row', TRUE, $content);
                        } else {
                                // Entry not found?
                                $content = array(
                                        'sel' => $sel
                                );
-                               $OUT .= loadTemplate('admin_menu_404_row', true, $content);
+                               $OUT .= loadTemplate('admin_menu_404_row', TRUE, $content);
                        }
                        SQL_FREERESULT($result);
                } // END - if
@@ -140,7 +140,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
        $content['count'] = $count;
 
        // Load template
-       loadTemplate('admin_delete_admin_menu', false, $content);
+       loadTemplate('admin_delete_admin_menu', FALSE, $content);
 } elseif ((isFormSent()) && (!isDemoModeActive())) {
        // An action is done...
        switch (postRequestElement('ok')) {
@@ -194,7 +194,7 @@ LIMIT 1",
        doAdminProcessMenuWeightning('admin', $AND);
 
        // Run SQL
-       $result = SQL_QUERY("SELECT `id`,`action`,`what`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$AND." ORDER BY `sort` ASC", __FILE__, __LINE__);
+       $result = SQL_QUERY("SELECT `id`, `action`, `what`, `title`, `sort` FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE ".$AND." ORDER BY `sort` ASC", __FILE__, __LINE__);
 
        // Are there entries?
        if (!SQL_HASZERONUMS($result)) {
@@ -227,7 +227,7 @@ LIMIT 1",
                        $content['do'] = 'admin';
 
                        // Load row template and switch colors
-                       $OUT .= loadTemplate('admin_menu_overview_row', true, $content);
+                       $OUT .= loadTemplate('admin_menu_overview_row', TRUE, $content);
                } // END - switch
 
                // Remember all rows
@@ -238,7 +238,7 @@ LIMIT 1",
                SQL_FREERESULT($result);
 
                // Load template
-               loadTemplate('admin_edit_admin_menu', false, $content);
+               loadTemplate('admin_edit_admin_menu', FALSE, $content);
        } else {
                // Menu entries are missing... (???)
                displayMessage('{--ADMIN_NO_MENUS_FOUND--}');