コード例 #1
0
 /**
  * History page
  */
 public function history()
 {
     $this->getContext()->getOutput()->setPageTitle(wfMessage('lvs-history-page-title')->text());
     // Get the user preference skin, not the current skin of the page
     $skin = F::app()->wg->User->getGlobalPreference('skin');
     // for monobook users, specify wikia skin in querystring
     $queryArr = [];
     if ($skin == "monobook") {
         $queryArr["useskin"] = "wikia";
     }
     $this->getContext()->getOutput()->setSubtitle(Wikia::link(SpecialPage::getTitleFor("LicensedVideoSwap"), wfMessage('lvs-page-header-back-link')->plain(), array('accesskey' => 'c'), $queryArr, 'known'));
     $this->recentChangesLink = Wikia::link(SpecialPage::getTitleFor("RecentChanges"));
     $helper = new LicensedVideoSwapHelper();
     $this->videos = $helper->getUndoList($this->getContext());
 }