AoWoW is now compatible with php7

(php7 is recommended but not required)
This commit is contained in:
Sarjuuk
2016-01-31 15:54:33 +01:00
parent 5abdbe2080
commit f076a30180
14 changed files with 34 additions and 34 deletions

View File

@@ -817,10 +817,10 @@ class NpcPage extends GenericPage
die($tt);
}
public function notFound()
public function notFound($title = '', $msg = '')
{
if ($this->mode != CACHE_TYPE_TOOLTIP)
return parent::notFound(Lang::game('npc'), Lang::npc('notFound'));
return parent::notFound($title ?: Lang::game('npc'), $msg ?: Lang::npc('notFound'));
header('Content-type: application/x-javascript; charset=utf-8');
echo $this->generateTooltip(true);