From 5dfc928820613b6e3eeee7e97e60b1af577aa575 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 3 Jun 2010 19:28:13 +0000 Subject: [PATCH] Kill $wgTitle in ImageHistoryList::imageHistoryLine() --- includes/ImagePage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index bd9b2815a3..93d9967e90 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -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 ) ), -- 2.20.1