Пример #1
0
 /**
  * Interface for FileRepo::checkRedirect()
  */
 function checkRedirect($title)
 {
     if (!$this->reposInitialised) {
         $this->initialiseRepos();
     }
     $redir = $this->localRepo->checkRedirect($title);
     if ($redir) {
         return $redir;
     }
     foreach ($this->foreignRepos as $repo) {
         $redir = $repo->checkRedirect($title);
         if ($redir) {
             return $redir;
         }
     }
     return false;
 }
Пример #2
0
 /**
  * Interface for FileRepo::checkRedirect()
  */
 function checkRedirect(Title $title)
 {
     if (!$this->reposInitialised) {
         $this->initialiseRepos();
     }
     $redir = $this->localRepo->checkRedirect($title);
     if ($redir) {
         return $redir;
     }
     foreach ($this->foreignRepos as $repo) {
         // Wikia Change
         if (empty($repo->checkRedirects)) {
             continue;
         }
         // Wikia Change End
         $redir = $repo->checkRedirect($title);
         if ($redir) {
             return $redir;
         }
     }
     return false;
 }