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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user