* (bug 10265) Fix regression in category image gallery paging
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 15 Jun 2007 15:02:44 +0000 (15:02 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 15 Jun 2007 15:02:44 +0000 (15:02 +0000)
RELEASE-NOTES
includes/ImageGallery.php

index a3621ae..0ef63df 100644 (file)
@@ -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 ==
index 6045ad6..19f1b57 100644 (file)
@@ -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 ) );
        }