mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
AoWoW is now compatible with php7
(php7 is recommended but not required)
This commit is contained in:
@@ -32,7 +32,7 @@ class EventPage extends GenericPage
|
||||
|
||||
$this->subject = new WorldEventList(array(['id', $this->typeId]));
|
||||
if ($this->subject->error)
|
||||
$this->notFound(Lang::game('event'), Lang::event('notFound'));
|
||||
$this->notFound();
|
||||
|
||||
$this->hId = $this->subject->getField('holidayId');
|
||||
$this->eId = $this->typeId;
|
||||
@@ -358,10 +358,10 @@ class EventPage extends GenericPage
|
||||
die(sprintf($tt, $start, $end));
|
||||
}
|
||||
|
||||
public function notFound()
|
||||
public function notFound($title = '', $msg = '')
|
||||
{
|
||||
if ($this->mode != CACHE_TYPE_TOOLTIP)
|
||||
return parent::notFound(Lang::game('event'), Lang::event('notFound'));
|
||||
return parent::notFound($title ?: Lang::game('event'), $msg ?: Lang::event('notFound'));
|
||||
|
||||
header('Content-type: application/x-javascript; charset=utf-8');
|
||||
echo $this->generateTooltip(true);
|
||||
|
||||
Reference in New Issue
Block a user