mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
removing smarty - part VI
- rewrote currencies, achievements, events, factions - GenericPage: * moved more checks from Util * structured and commented GenericPage to be easier to comprehend * added GenericPage::postCache() to modify cached data before display (e.g. update time for events) - fixed: * parsing events from markdown (e.g. articles) * huge padding of minibox headings (css) * Loot passing jsGlobals to template * ItemList::getExtendedCost passing jsGlobals to template * categories for factions * conflicting GenericPage::$subject when displaying 'notFound' * load of typos
This commit is contained in:
@@ -20,20 +20,15 @@ class RacePage extends GenericPage
|
||||
|
||||
public function __construct($__, $id)
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->typeId = intVal($id);
|
||||
|
||||
$this->subject = new CharRaceList(array(['id', $this->typeId]));
|
||||
if ($this->subject->error)
|
||||
$this->notFound(Lang::$game['race']);
|
||||
|
||||
$this->name = $this->subject->getField('name', true);
|
||||
$this->gPageInfo = array(
|
||||
'type' => $this->type,
|
||||
'typeId' => $this->typeId,
|
||||
'name' => $this->name
|
||||
);
|
||||
|
||||
parent::__construct();
|
||||
$this->name = $this->subject->getField('name', true);
|
||||
}
|
||||
|
||||
protected function generatePath()
|
||||
|
||||
Reference in New Issue
Block a user