Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -965,13 +965,17 @@ |
966 | 966 | class ImageHistoryPseudoPager extends ReverseChronologicalPager { |
967 | 967 | function __construct( $imagePage ) { |
968 | 968 | parent::__construct(); |
969 | | - $this->mImagePage =& $imagePage; |
970 | | - $this->mTitle = $imagePage->getTitle(); |
| 969 | + $this->mImagePage = $imagePage; |
| 970 | + $this->mTitle = clone( $imagePage->getTitle() ); |
971 | 971 | $this->mTitle->setFragment( '#filehistory' ); |
972 | 972 | $this->mImg = NULL; |
973 | 973 | $this->mHist = array(); |
974 | 974 | $this->mRange = array( 0, 0 ); // display range |
975 | 975 | } |
| 976 | + |
| 977 | + function getTitle() { |
| 978 | + return $this->mTitle; |
| 979 | + } |
976 | 980 | |
977 | 981 | function getQueryInfo() { |
978 | 982 | return false; |