]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_user.php
Mahor rewrite:
[mailer.git] / inc / modules / admin / what-list_user.php
index 8618702c4d8e2d595d4f599bf55a9422a8a5c8bb..15990d4acc4275e76656fbf5e71a8e220dcf9f9f 100644 (file)
@@ -222,16 +222,16 @@ LIMIT 1",
        $result_master = SQL_QUERY($SQL, __FILE__, __LINE__);
 
        // Calculate page count (0.5 fixes a bug with page count)
-       if ($_CONFIG['user_limit'] == 0) {
-               $_CONFIG['user_limit'] = 100;
+       if (getConfig('user_limit') == 0) {
+               getConfig('user_limit') = 100;
                LOAD_TEMPLATE("admin_settings_saved", false, EXTENSION_WARNING_USER_LIMIT);
        } // END - if
 
        // Activate the extension please!
-       $PAGES = round(SQL_NUMROWS($result_master) / $_CONFIG['user_limit'] + 0.5);
+       $PAGES = round(SQL_NUMROWS($result_master) / getConfig('user_limit') + 0.5);
 
        if (empty($_GET['page']))   $_GET['page']   = "1";
-       if (empty($_GET['offset'])) $_GET['offset'] = $_CONFIG['user_limit'];
+       if (empty($_GET['offset'])) $_GET['offset'] = getConfig('user_limit');
 
        // Add limitation to SQL string and run him again
        $SQL .= " LIMIT ".($_GET['offset'] * $_GET['page'] - $_GET['offset']).", ".$_GET['offset'];
@@ -259,7 +259,7 @@ LIMIT 1",
                }
 
                if ($PAGES > 1) {
-                       define('__PAGE_NAV', ADD_PAGENAV($PAGES, $_CONFIG['user_limit'], true, $colspan, true));
+                       define('__PAGE_NAV', ADD_PAGENAV($PAGES, getConfig('user_limit'), true, $colspan, true));
                } else {
                        // No page navigation is required
                        define('__PAGE_NAV', "");