public function onOutputPageBeforeHTML(&$out, &$text) { $wgJsMimeType = $this->app->getGlobal('wgJsMimeType'); $wgExtensionsPath = $this->app->getGlobal('wgExtensionsPath'); $out->addScript("<script type=\"{$wgJsMimeType}\" src=\"{$wgExtensionsPath}/wikia/hacks/UserActivityDiscovery/js/uad.js\"></script>\n"); return true; }
/** * get db handler * @return DatabaseBase */ protected function getDb($type = DB_MASTER) { return $this->app->runFunction('wfGetDB', $type, array(), $this->app->getGlobal('wgExternalDatawareDB')); }