]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-adminedit.php
Several more constants rewritten to getConfig()
[mailer.git] / inc / modules / admin / what-adminedit.php
index 6db7d6964761b7e2f9fedfb265cbd6d430b54091..8d6aa9f0e1ffd7564a7122e66bbf9eccda0215a5 100644 (file)
@@ -250,26 +250,26 @@ WHERE ".$AND." AND id=%s LIMIT 1",
                        $content['navi'] = '';
                        if (($content['sort'] == 0) || (($content['sort'] == 1) && (!empty($SUB)))) {
                                // Is highest position
-                               $content['navi'] = "<a href=\"{!URL!}/modules.php?module=admin&amp;what=adminedit&amp;sub={!__SUB_VALUE!}&amp;act=".$content['action']."&amp;w=".$content['what']."&amp;tid=".($content['sort']+1)."&amp;fid=".$content['sort']."\">{--LOWER--}</a>";
+                               $content['navi'] = "<a href=\"{?URL?}/modules.php?module=admin&amp;what=adminedit&amp;sub={!__SUB_VALUE!}&amp;act=".$content['action']."&amp;w=".$content['what']."&amp;tid=".($content['sort']+1)."&amp;fid=".$content['sort']."\">{--LOWER--}</a>";
                        } elseif ($cnt == $max) {
                                // Is lowest position
-                               $content['navi'] = "<a href=\"{!URL!}/modules.php?module=admin&amp;what=adminedit&amp;sub={!__SUB_VALUE!}&amp;act=".$content['action']."&amp;w=".$content['what']."&amp;tid=".($content['sort']-1)."&amp;fid=".$content['sort']."\">{--HIGHER--}</a>";
+                               $content['navi'] = "<a href=\"{?URL?}/modules.php?module=admin&amp;what=adminedit&amp;sub={!__SUB_VALUE!}&amp;act=".$content['action']."&amp;w=".$content['what']."&amp;tid=".($content['sort']-1)."&amp;fid=".$content['sort']."\">{--HIGHER--}</a>";
                        } elseif ($content['sort'] > 0) {
                                // Anything else between highest and lowest
-                               $content['navi'] = "<a href=\"{!URL!}/modules.php?module=admin&amp;what=adminedit&amp;sub={!__SUB_VALUE!}&amp;act=".$content['action']."&amp;w=".$content['what']."&amp;tid=".($content['sort']-1)."&amp;fid=".$content['sort']."\">{--HIGHER--}</a>/<a href=\"{!URL!}/modules.php?module=admin&amp;what=adminedit&amp;sub={!__SUB_VALUE!}&amp;act=".$content['action']."&amp;w=".$content['what']."&amp;tid=".($content['sort']+1)."&amp;fid=".$content['sort']."\">{--LOWER--}</a>";
+                               $content['navi'] = "<a href=\"{?URL?}/modules.php?module=admin&amp;what=adminedit&amp;sub={!__SUB_VALUE!}&amp;act=".$content['action']."&amp;w=".$content['what']."&amp;tid=".($content['sort']-1)."&amp;fid=".$content['sort']."\">{--HIGHER--}</a>/<a href=\"{?URL?}/modules.php?module=admin&amp;what=adminedit&amp;sub={!__SUB_VALUE!}&amp;act=".$content['action']."&amp;w=".$content['what']."&amp;tid=".($content['sort']+1)."&amp;fid=".$content['sort']."\">{--LOWER--}</a>";
                        }
 
                        // Fix empty elements for constant (fixes display bugs in Firefox)
-                       if (empty($content['action'])) $content['action'] = "&nbsp;";
-                       if (empty($content['what']))   $content['what']   = "&nbsp;";
-                       if (empty($content['title']))  $content['title']  = "&nbsp;";
+                       if (empty($content['action'])) $content['action'] = '&nbsp;';
+                       if (empty($content['what']))   $content['what']   = '&nbsp;';
+                       if (empty($content['title']))  $content['title']  = '&nbsp;';
 
                        // Add more data to $content
                        $content['sw']   = $SW;
                        $content['mode'] = 'admin';
 
                        // Load row template and switch colors
-                       $OUT .= LOAD_TEMPLATE("admin_menu_overview_row", true, $content);
+                       $OUT .= LOAD_TEMPLATE('admin_menu_overview_row', true, $content);
                        $SW = 3 - $SW;
                } // END - switch
 
@@ -280,7 +280,7 @@ WHERE ".$AND." AND id=%s LIMIT 1",
                define('__MENU_ROWS', $OUT);
 
                // Load template
-               LOAD_TEMPLATE("admin_amenu_edit");
+               LOAD_TEMPLATE('admin_amenu_edit');
        } else {
                // Menu entries are missing... (???)
                LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_NO_MENUS_FOUND'));