Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 /**
  * get db handler
  * @return DatabaseBase
  */
 protected function getDb($type = DB_MASTER)
 {
     return $this->app->runFunction('wfGetDB', $type, array(), $this->app->getGlobal('wgExternalDatawareDB'));
 }