$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'];
}
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', "");