Misc/Misc

* fixed auth against TCs auth table
 * check for real paths when creating emote aliasses
 * races page no longer identifies as classes
 * fixed item comparison tool
 * fixed js error when trying to display spawn maps
This commit is contained in:
Sarjuuk
2016-02-27 23:15:54 +01:00
parent 741ebf38f9
commit 71e44e572a
9 changed files with 64 additions and 40 deletions

View File

@@ -17,23 +17,24 @@ function emotes(/*array $ids = [] */)
$allOK = true;
$locPath = [];
DB::Aowow()->query('TRUNCATE ?_emotes_aliasses');
foreach (CLISetup::$localeIds as $lId)
{
DB::Aowow()->query('TRUNCATE ?_emotes_aliasses');
$path = sprintf($globStrPath, Util::$localeStrings[$lId].'/');
if (CLISetup::fileExists($path))
foreach (CLISetup::$expectedPaths as $xp => $locId)
{
$locPath[$lId] = $path;
continue;
}
if ($lId != $locId)
continue;
// locale not found, try base mpqData
$path = sprintf($globStrPath, '');
if (CLISetup::fileExists($path))
{
$locPath[$lId] = $path;
continue;
if ($xp) // if in subDir add trailing slash
$xp .= '/';
$path = sprintf($globStrPath, $xp);
if (CLISetup::fileExists($path))
{
$locPath[$lId] = $path;
continue 2;
}
}
CLISetup::log('GlobalStrings.lua not found for selected locale '.CLISetup::bold(Util::$localeStrings[$lId]), CLISetup::LOG_WARN);