From 2a815b10bbfaf64e284791af3e95f84702572836 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 23 Dec 2008 17:58:22 +0000 Subject: [PATCH] Cleanup for r44700 -- work on a clone of $wgTitle instead of modifying the fragment on the global object, which interferes with some other generated links outside the pager. --- includes/ImagePage.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 49e7f2d067..e2a0b365d1 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -965,13 +965,17 @@ class ImageHistoryList { class ImageHistoryPseudoPager extends ReverseChronologicalPager { function __construct( $imagePage ) { parent::__construct(); - $this->mImagePage =& $imagePage; - $this->mTitle = $imagePage->getTitle(); + $this->mImagePage = $imagePage; + $this->mTitle = clone( $imagePage->getTitle() ); $this->mTitle->setFragment( '#filehistory' ); $this->mImg = NULL; $this->mHist = array(); $this->mRange = array( 0, 0 ); // display range } + + function getTitle() { + return $this->mTitle; + } function getQueryInfo() { return false; -- 2.20.1