From 95c00cce55d4661daf2c8e7ee838f78e1245e326 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 15 Jun 2007 15:02:44 +0000 Subject: [PATCH] * (bug 10265) Fix regression in category image gallery paging --- RELEASE-NOTES | 1 + includes/ImageGallery.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a3621aeabc..0ef63dfea8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -165,6 +165,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 10223) Fix edit link in noarticletext localizations for fr, oc * (bug 10247) Fix IP address regex to avoid false positive IPv6 matches * (bug 9948) Workaround for diff regression with old Mozilla versions +* (bug 10265) Fix regression in category image gallery paging == API changes since 1.10 == diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 6045ad682a..19f1b5751a 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -147,6 +147,10 @@ class ImageGallery * @param $html String: Additional HTML text to be shown. The name and size of the image are always shown. */ function insert( $title, $html='' ) { + if ( $title instanceof File ) { + // Old calling convention + $title = $title->getTitle(); + } array_unshift( $this->mImages, array( &$title, $html ) ); } -- 2.20.1