mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
PHP7/compatibility
* changes to search.php somehow slipped through
This commit is contained in:
@@ -47,12 +47,12 @@ class SearchPage extends GenericPage
|
|||||||
private $included = [];
|
private $included = [];
|
||||||
private $excluded = [];
|
private $excluded = [];
|
||||||
private $searches = array(
|
private $searches = array(
|
||||||
['_searchCharClass'], ['_searchCharRace'], ['_searchTitle'], ['_searchWorldEvent'], ['_searchCurrency'],
|
'_searchCharClass', '_searchCharRace', '_searchTitle', '_searchWorldEvent', '_searchCurrency',
|
||||||
['_searchItemset'], ['_searchItem'], ['_searchAbility'], ['_searchTalent'], ['_searchGlyph'],
|
'_searchItemset', '_searchItem', '_searchAbility', '_searchTalent', '_searchGlyph',
|
||||||
['_searchProficiency'], ['_searchProfession'], ['_searchCompanion'], ['_searchMount'], ['_searchCreature'],
|
'_searchProficiency', '_searchProfession', '_searchCompanion', '_searchMount', '_searchCreature',
|
||||||
['_searchQuest'], ['_searchAchievement'], ['_searchStatistic'], ['_searchZone'], ['_searchObject'],
|
'_searchQuest', '_searchAchievement', '_searchStatistic', '_searchZone', '_searchObject',
|
||||||
['_searchFaction'], ['_searchSkill'], ['_searchPet'], ['_searchCreatureAbility'], ['_searchSpell'],
|
'_searchFaction', '_searchSkill', '_searchPet', '_searchCreatureAbility', '_searchSpell',
|
||||||
['_searchEmote'], ['_searchEnchantment']
|
'_searchEmote', '_searchEnchantment'
|
||||||
);
|
);
|
||||||
|
|
||||||
public function __construct($pageCall, $pageParam)
|
public function __construct($pageCall, $pageParam)
|
||||||
@@ -376,7 +376,7 @@ class SearchPage extends GenericPage
|
|||||||
$shared = [];
|
$shared = [];
|
||||||
foreach ($this->searches as $idx => $ref)
|
foreach ($this->searches as $idx => $ref)
|
||||||
if ($this->searchMask & (1 << $idx))
|
if ($this->searchMask & (1 << $idx))
|
||||||
if ($_ = $this->$ref[0]($cndBase, $shared))
|
if ($_ = $this->$ref($cndBase, $shared))
|
||||||
$this->lvTabs[$idx] = $_;
|
$this->lvTabs[$idx] = $_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user