mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
JS/CSS
* unify handling
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user