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:
@@ -59,7 +59,7 @@ abstract class BaseType
|
||||
{
|
||||
$where = [];
|
||||
$linking = ' AND ';
|
||||
$limit = CFG_SQL_LIMIT_DEFAULT;
|
||||
$limit = Cfg::get('SQL_LIMIT_DEFAULT');
|
||||
|
||||
if (!$this->queryBase || $conditions === null)
|
||||
return;
|
||||
@@ -875,7 +875,7 @@ trait sourceHelper
|
||||
$buff[$_curTpl['moreType']][] = $_curTpl['moreTypeId'];
|
||||
|
||||
foreach ($buff as $type => $ids)
|
||||
$this->sourceMore[$type] = Type::newList($type, [CFG_SQL_LIMIT_NONE, ['id', $ids]]);
|
||||
$this->sourceMore[$type] = Type::newList($type, [Cfg::get('SQL_LIMIT_NONE'), ['id', $ids]]);
|
||||
}
|
||||
|
||||
$s = array_keys($this->sources[$this->id]);
|
||||
|
||||
Reference in New Issue
Block a user