/** * Loads the needed JavaScript. * Takes care of non-RL compatibility. * * @since 0.1 */ protected static function loadJs() { global $wgOut; // For backward compatibility with MW < 1.17. if (is_callable(array($wgOut, 'addModules'))) { $wgOut->addModules('ext.push.tab'); } else { global $egPushScriptPath; PushFunctions::addJSLocalisation(); $wgOut->addHeadItem('ext.push.tab', Html::linkedScript($egPushScriptPath . '/includes/ext.push.tab.js')); } }
/** * Loads the needed JavaScript. * Takes care of non-RL compatibility. * * @since 0.2 */ protected function loadJs() { $out = $this->getOutput(); // For backward compatibility with MW < 1.17. if (is_callable(array($out, 'addModules'))) { $out->addModules('ext.push.special'); } else { global $egPushScriptPath; PushFunctions::addJSLocalisation(); $out->addHeadItem('ext.push.special', Html::linkedScript($egPushScriptPath . '/specials/ext.push.special.js')); } }