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

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