* handle backlink in Page instead of Util
 * update event/holiday link
This commit is contained in:
Sarjuuk
2024-02-05 20:57:29 +01:00
parent 6958efcd0f
commit ba53a5c760
7 changed files with 12 additions and 7 deletions

View File

@@ -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();
}