* unify handling
This commit is contained in:
Sarjuuk
2022-03-12 23:59:06 +01:00
parent 4b32811424
commit 3cb02f2204
49 changed files with 179 additions and 159 deletions

View File

@@ -16,8 +16,8 @@ class NpcPage extends GenericPage
protected $path = [0, 4];
protected $tabId = 0;
protected $mode = CACHE_TYPE_PAGE;
protected $js = ['swfobject.js'];
protected $css = [['path' => 'Profiler.css']];
protected $js = [[JS_FILE, 'swfobject.js']];
protected $css = [[CSS_FILE, 'Profiler.css']];
protected $_get = ['domain' => ['filter' => FILTER_CALLBACK, 'options' => 'GenericPage::checkDomain']];
@@ -57,7 +57,7 @@ class NpcPage extends GenericPage
protected function generateContent()
{
$this->addJS('?data=zones&locale='.User::$localeId.'&t='.$_SESSION['dataKey']);
$this->addScript([JS_FILE, '?data=zones&locale='.User::$localeId.'&t='.$_SESSION['dataKey']]);
$_typeFlags = $this->subject->getField('typeFlags');
$_altIds = [];