mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Page/WH
* handle backlink in Page instead of Util * update event/holiday link
This commit is contained in:
@@ -175,6 +175,8 @@ class GenericPage
|
||||
protected $mode = CACHE_TYPE_NONE;
|
||||
// protected $contribute; // defined in __construct()
|
||||
|
||||
protected $wowheadLink = 'https://wowhead.com/';
|
||||
|
||||
protected $jsGlobals = [];
|
||||
protected $lvData = [];
|
||||
protected $title = [CFG_NAME]; // for title-Element
|
||||
@@ -302,6 +304,8 @@ class GenericPage
|
||||
$this->gFavorites = User::getFavorites();
|
||||
$this->pageTemplate['pageName'] = strtolower($pageCall);
|
||||
|
||||
$this->wowheadLink = sprintf(WOWHEAD_LINK, Util::$subDomains[User::$localeId], $pageCall, $pageParam);
|
||||
|
||||
if (!$this->isValidPage())
|
||||
$this->error();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user