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:
@@ -80,7 +80,21 @@ class TitlePage extends GenericPage
|
||||
BUTTON_LINKS => ['name' => $this->nameFixed]
|
||||
);
|
||||
|
||||
// todo (low): create pendant from player_factionchange_titles
|
||||
// factionchange-equivalent
|
||||
if ($pendant = DB::World()->selectCell('SELECT IF(horde_id = ?d, alliance_id, -horde_id) FROM player_factionchange_titles WHERE alliance_id = ?d OR horde_id = ?d', $this->typeId, $this->typeId, $this->typeId))
|
||||
{
|
||||
$altTitle = new TitleList(array(['id', abs($pendant)]));
|
||||
if (!$altTitle->error)
|
||||
{
|
||||
$this->transfer = sprintf(
|
||||
Lang::title('_transfer'),
|
||||
$altTitle->id,
|
||||
$altTitle->getHtmlizedName(),
|
||||
$pendant > 0 ? 'alliance' : 'horde',
|
||||
$pendant > 0 ? Lang::$game['si'][1] : Lang::$game['si'][2]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**************/
|
||||
/* Extra Tabs */
|
||||
|
||||
Reference in New Issue
Block a user