Use $this->mTitle instead of $wgArticle->getTitle()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 4 Jan 2011 15:02:54 +0000 (15:02 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 4 Jan 2011 15:02:54 +0000 (15:02 +0000)
includes/Skin.php

index f94903c..8d12aa1 100644 (file)
@@ -1566,9 +1566,7 @@ class Skin extends Linker {
                // Allow for site and per-namespace customization of copyright notice.
                $forContent = true;
 
-               if ( isset( $wgArticle ) ) {
-                       wfRunHooks( 'SkinCopyrightFooter', array( $wgArticle->getTitle(), $type, &$msg, &$link, &$forContent ) );
-               }
+               wfRunHooks( 'SkinCopyrightFooter', array( $this->mTitle, $type, &$msg, &$link, &$forContent ) );
 
                if ( $forContent ) {
                        $out .= wfMsgForContent( $msg, $link );