r67295 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67294‎ | r67295 | r67296 >
Date:19:28, 3 June 2010
Author:ialex
Status:ok
Tags:
Comment:
Kill $wgTitle in ImageHistoryList::imageHistoryLine()
Modified paths:
  • /trunk/phase3/includes/ImagePage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ImagePage.php
@@ -848,7 +848,7 @@
849849 }
850850
851851 public function imageHistoryLine( $iscur, $file ) {
852 - global $wgUser, $wgLang, $wgContLang, $wgTitle;
 852+ global $wgUser, $wgLang, $wgContLang;
853853
854854 $timestamp = wfTimestamp( TS_MW, $file->getTimestamp() );
855855 $img = $iscur ? $file->getName() : $file->getArchiveName();
@@ -886,7 +886,7 @@
887887 list( $ts, $name ) = explode( '!', $img, 2 );
888888 $query = array(
889889 'type' => 'oldimage',
890 - 'target' => $wgTitle->getPrefixedText(),
 890+ 'target' => $this->title->getPrefixedText(),
891891 'ids' => $ts,
892892 );
893893 $del = $this->skin->revDeleteLink( $query,
@@ -936,7 +936,7 @@
937937 $wgLang->timeAndDate( $timestamp, true ),
938938 array(),
939939 array(
940 - 'target' => $wgTitle->getPrefixedText(),
 940+ 'target' => $this->title->getPrefixedText(),
941941 'file' => $img,
942942 'token' => $wgUser->editToken( $img )
943943 ),

Status & tagging log