mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* fixed bitshift by negative number issue when evaluating spell MiscValues
* defined upper limit for localeIds and also discard negative localeIds * fixed eval error when parsing spell descriptions. Calculated numbers sadly can't be localized.
This commit is contained in:
@@ -253,8 +253,9 @@ if (!CLI)
|
||||
// all strings attached..
|
||||
if (!empty($AoWoWconf['aowow']))
|
||||
{
|
||||
if (isset($_GET['locale']) && (CFG_LOCALES & (1 << (int)$_GET['locale'])))
|
||||
User::useLocale($_GET['locale']);
|
||||
if (isset($_GET['locale']) && (int)$_GET['locale'] <= MAX_LOCALES && (int)$_GET['locale'] >= 0)
|
||||
if (CFG_LOCALES & (1 << $_GET['locale']))
|
||||
User::useLocale($_GET['locale']);
|
||||
|
||||
Lang::load(User::$localeString);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user