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:
@@ -482,7 +482,7 @@ class GuidePage extends GenericPage
|
||||
return false;
|
||||
|
||||
// req: valid data
|
||||
if (!in_array($this->_post['category'], $this->validCats) || !(CFG_LOCALES & (1 << $this->_post['locale'])))
|
||||
if (!in_array($this->_post['category'], $this->validCats) || !(Cfg::get('LOCALES') & (1 << $this->_post['locale'])))
|
||||
return false;
|
||||
|
||||
// sanitize: spec / class
|
||||
|
||||
Reference in New Issue
Block a user