mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- Error handling:
* replaced error-suppressions with proper checks * log php errors to db * use __callStatic() to access localization and thus handle erronous keys - Setup: * fixed some erronous filenames when generating icons * increased alpha threshold for spawn maps (should improve spawn points) - disentangled DB::Aowow and DB::World. Aowow should now be able to run with DB::World being on a different server - added missing faction transfer pendants (title/quest/faction/..) - fixed extended costs for specific vendors
This commit is contained in:
@@ -40,6 +40,24 @@ class Lang
|
||||
self::$item['cat'][2][1][14] .= ' ('.self::$item['cat'][2][0].')';
|
||||
}
|
||||
|
||||
// todo: make static props private and access through this
|
||||
public static function __callStatic($name, $args)
|
||||
{
|
||||
if (!isset(self::$$name))
|
||||
return null;
|
||||
|
||||
$var = self::$$name;
|
||||
foreach ($args as $key)
|
||||
{
|
||||
if (!isset($var[$key]))
|
||||
return null;
|
||||
|
||||
$var = $var[$key];
|
||||
}
|
||||
|
||||
return $var;
|
||||
}
|
||||
|
||||
// todo: expand
|
||||
public static function getInfoBoxForFlags($flags)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user