Kill $wgTitle in ImageHistoryList::imageHistoryLine()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 3 Jun 2010 19:28:13 +0000 (19:28 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 3 Jun 2010 19:28:13 +0000 (19:28 +0000)
includes/ImagePage.php

index bd9b281..93d9967 100644 (file)
@@ -848,7 +848,7 @@ class ImageHistoryList {
        }
 
        public function imageHistoryLine( $iscur, $file ) {
-               global $wgUser, $wgLang, $wgContLang, $wgTitle;
+               global $wgUser, $wgLang, $wgContLang;
 
                $timestamp = wfTimestamp( TS_MW, $file->getTimestamp() );
                $img = $iscur ? $file->getName() : $file->getArchiveName();
@@ -886,7 +886,7 @@ class ImageHistoryList {
                                        list( $ts, $name ) = explode( '!', $img, 2 );
                                        $query = array(
                                                'type'   => 'oldimage',
-                                               'target' => $wgTitle->getPrefixedText(),
+                                               'target' => $this->title->getPrefixedText(),
                                                'ids'    => $ts,
                                        );
                                        $del = $this->skin->revDeleteLink( $query,
@@ -936,7 +936,7 @@ class ImageHistoryList {
                                $wgLang->timeAndDate( $timestamp, true ),
                                array(),
                                array(
-                                       'target' => $wgTitle->getPrefixedText(),
+                                       'target' => $this->title->getPrefixedText(),
                                        'file' => $img,
                                        'token' => $wgUser->editToken( $img )
                                ),