Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@ -14,7 +14,11 @@ class HeaderFooter
- return true;
- }
- - global $wgTitle;
- + $title = $op->getTitle();
- + if ( $title->isRedirect() ) {
- + $article = Article::newFromID( $title->getArticleID() );
- + $title = $article->getRedirectTarget();
- + }
- $ns = $wgTitle->getNsText();
- $name = $wgTitle->getPrefixedDBKey();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement