Advertisement
hexmode

Fix HeaderFooter

Jul 19th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.33 KB | None | 0 0
  1. @@ -14,7 +14,11 @@ class HeaderFooter
  2.             return true;
  3.         }
  4.  
  5. -       global $wgTitle;
  6. +       $title = $op->getTitle();
  7. +       if ( $title->isRedirect() ) {
  8. +           $article = Article::newFromID( $title->getArticleID() );
  9. +           $title = $article->getRedirectTarget();
  10. +       }
  11.  
  12.         $ns = $wgTitle->getNsText();
  13.         $name = $wgTitle->getPrefixedDBKey();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement