diff --git a/include/ajax.config.php b/include/ajax.config.php index 132da3daf9de1003d3c5625b723880430416f714..1ac326e98d5ec5b8bb4a873b6fb891cbf1d0c6e8 100644 --- a/include/ajax.config.php +++ b/include/ajax.config.php @@ -48,7 +48,7 @@ class ConfigAjaxAPI extends AjaxController { 'primary_lang_flag' => strtolower($primary_info['flag'] ?: $primary_locale ?: $primary_sl), 'primary_language' => Internationalization::rfc1766($primary), 'secondary_languages' => $cfg->getSecondaryLanguages(), - 'page_size' => $thisstaff->getPageLimit(), + 'page_size' => $thisstaff->getPageLimit() ?: PAGE_LIMIT, ); return $this->json_encode($config); } diff --git a/scp/staff.inc.php b/scp/staff.inc.php index 757befc8d5a449b78326531b2500387e904df846..e486cde88b72018c1464c3bc5b94240c482a4420 100644 --- a/scp/staff.inc.php +++ b/scp/staff.inc.php @@ -107,7 +107,7 @@ $ost->addExtraHeader('<meta name="csrf_token" content="'.$ost->getCSRFToken().'" require_once(INCLUDE_DIR.'class.nav.php'); /******* SET STAFF DEFAULTS **********/ -define('PAGE_LIMIT', $thisstaff->getPageLimit()?$thisstaff->getPageLimit():DEFAULT_PAGE_LIMIT); +define('PAGE_LIMIT', $thisstaff->getPageLimit() ?: DEFAULT_PAGE_LIMIT); $tabs=array(); $submenu=array();