mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Core/Config
* convert configuration from list of constants to object * fixes config changes not applying on cli whithout closing and reopening again * config variables are no longer embedded in localization text
This commit is contained in:
@@ -231,7 +231,7 @@ class ItemsPage extends GenericPage
|
||||
$nameSource = [];
|
||||
$grouping = isset($this->filter['gb']) ? $this->filter['gb'] : null;
|
||||
$extraOpts = [];
|
||||
$maxResults = CFG_SQL_LIMIT_DEFAULT;
|
||||
$maxResults = Cfg::get('SQL_LIMIT_DEFAULT');
|
||||
|
||||
switch ($grouping)
|
||||
{
|
||||
@@ -409,7 +409,7 @@ class ItemsPage extends GenericPage
|
||||
}
|
||||
else if ($items->getMatches() > $maxResults)
|
||||
{
|
||||
$tabData['note'] = sprintf(Util::$tryFilteringString, 'LANG.lvnote_itemsfound', $items->getMatches(), CFG_SQL_LIMIT_DEFAULT);
|
||||
$tabData['note'] = sprintf(Util::$tryFilteringString, 'LANG.lvnote_itemsfound', $items->getMatches(), Cfg::get('SQL_LIMIT_DEFAULT'));
|
||||
$tabData['_truncated'] = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user