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:
@@ -466,10 +466,10 @@ class AchievementPage extends GenericPage
|
||||
die($tt);
|
||||
}
|
||||
|
||||
public function notFound()
|
||||
public function notFound($title = '', $msg = '')
|
||||
{
|
||||
if ($this->mode != CACHE_TYPE_TOOLTIP)
|
||||
return parent::notFound(Lang::game('achievement'), Lang::achievement('notFound'));
|
||||
return parent::notFound($title ?: Lang::game('achievement'), $msg ?: Lang::achievement('notFound'));
|
||||
|
||||
header('Content-type: application/x-javascript; charset=utf-8');
|
||||
echo $this->generateTooltip(true);
|
||||
|
||||
@@ -29,7 +29,7 @@ class CurrencyPage extends GenericPage
|
||||
|
||||
$this->subject = new CurrencyList(array(['id', $this->typeId]));
|
||||
if ($this->subject->error)
|
||||
$this->notFound(Lang::game('currency'), Lang::currency('notFound'));
|
||||
$this->notFound();
|
||||
|
||||
$this->name = $this->subject->getField('name', true);
|
||||
}
|
||||
@@ -259,10 +259,10 @@ class CurrencyPage extends GenericPage
|
||||
die($tt);
|
||||
}
|
||||
|
||||
public function notFound()
|
||||
public function notFound($title = '', $msg = '')
|
||||
{
|
||||
if ($this->mode != CACHE_TYPE_TOOLTIP)
|
||||
return parent::notFound(Lang::game('currency'), Lang::currency('notFound'));
|
||||
return parent::notFound($title ?: Lang::game('currency'), $msg ?: Lang::currency('notFound'));
|
||||
|
||||
header('Content-type: application/x-javascript; charset=utf-8');
|
||||
echo $this->generateTooltip(true);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -1182,7 +1182,7 @@ class ItemPage extends genericPage
|
||||
return parent::display($override);
|
||||
}
|
||||
|
||||
public function notFound()
|
||||
public function notFound($title = '', $msg = '')
|
||||
{
|
||||
if ($this->mode == CACHE_TYPE_TOOLTIP)
|
||||
{
|
||||
@@ -1197,7 +1197,7 @@ class ItemPage extends genericPage
|
||||
exit();
|
||||
}
|
||||
else
|
||||
return parent::notFound(Lang::game('item'), Lang::item('notFound'));
|
||||
return parent::notFound($title ?: Lang::game('item'), $msg ?: Lang::item('notFound'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ class ItemsetPage extends GenericPage
|
||||
|
||||
$this->subject = new ItemsetList(array(['id', $this->typeId]));
|
||||
if ($this->subject->error)
|
||||
$this->notFound(Lang::game('itemset'), Lang::itemset('notFound'));
|
||||
$this->notFound();
|
||||
|
||||
$this->name = $this->subject->getField('name', true);
|
||||
$this->extendGlobalData($this->subject->getJSGlobals());
|
||||
@@ -260,10 +260,10 @@ class ItemsetPage extends GenericPage
|
||||
die($tt);
|
||||
}
|
||||
|
||||
public function notFound()
|
||||
public function notFound($title = '', $msg = '')
|
||||
{
|
||||
if ($this->mode != CACHE_TYPE_TOOLTIP)
|
||||
return parent::notFound(Lang::game('itemset'), Lang::itemset('notFound'));
|
||||
return parent::notFound($title ?: Lang::game('itemset'), $msg ?: Lang::itemset('notFound'));
|
||||
|
||||
header('Content-type: application/x-javascript; charset=utf-8');
|
||||
echo $this->generateTooltip(true);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -122,10 +122,10 @@ class ProfilePage extends GenericPage
|
||||
die($this->generateTooltip());
|
||||
}
|
||||
|
||||
public function notFound()
|
||||
public function notFound($title = '', $msg = '')
|
||||
{
|
||||
if ($this->mode != CACHE_TYPE_TOOLTIP)
|
||||
return parent::notFound(Util::ucFirst(Lang::game('profile')), '[NNF]profile or char doesn\'t exist');
|
||||
return parent::notFound($title ?: Util::ucFirst(Lang::game('profile')), $msg ?: '[NNF]profile or char doesn\'t exist');
|
||||
|
||||
header('Content-type: application/x-javascript; charset=utf-8');
|
||||
echo $this->generateTooltip(true);
|
||||
|
||||
@@ -696,10 +696,10 @@ class QuestPage extends GenericPage
|
||||
die($tt);
|
||||
}
|
||||
|
||||
public function notFound()
|
||||
public function notFound($title = '', $msg = '')
|
||||
{
|
||||
if ($this->mode != CACHE_TYPE_TOOLTIP)
|
||||
return parent::notFound(Lang::game('quest'), Lang::quest('notFound'));
|
||||
return parent::notFound($title ?: Lang::game('quest'), $msg ?: Lang::quest('notFound'));
|
||||
|
||||
header('Content-type: application/x-javascript; charset=utf-8');
|
||||
echo $this->generateTooltip(true);
|
||||
|
||||
@@ -196,7 +196,7 @@ class SearchPage extends GenericPage
|
||||
$this->performSearch();
|
||||
}
|
||||
|
||||
public function notFound()
|
||||
public function notFound($title = '', $msg = '')
|
||||
{
|
||||
if ($this->searchMask & SEARCH_TYPE_REGULAR)
|
||||
{
|
||||
|
||||
@@ -1211,10 +1211,10 @@ class SpellPage extends GenericPage
|
||||
die($tt);
|
||||
}
|
||||
|
||||
public function notFound()
|
||||
public function notFound($title = '', $msg = '')
|
||||
{
|
||||
if ($this->mode != CACHE_TYPE_TOOLTIP)
|
||||
return parent::notFound(Lang::game('spell'), Lang::spell('notFound'));
|
||||
return parent::notFound($title ?: Lang::game('spell'), $msg ?: Lang::spell('notFound'));
|
||||
|
||||
header('Content-type: application/x-javascript; charset=utf-8');
|
||||
echo $this->generateTooltip(true);
|
||||
|
||||
Reference in New Issue
Block a user