Use wfLocalFile() instead of create an Image object, was throwing an E_USER_NOTICE...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 9 Apr 2008 12:09:15 +0000 (12:09 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 9 Apr 2008 12:09:15 +0000 (12:09 +0000)
includes/CategoryPage.php

index a6d2c8e..5f293d1 100644 (file)
@@ -170,7 +170,7 @@ class CategoryViewer {
         */
        function addImage( Title $title, $sortkey, $pageLength, $isRedirect = false ) {
                if ( $this->showGallery ) {
-                       $image = new Image( $title );
+                       $image = wfLocalFile( $title );
                        if( $this->flip ) {
                                $this->gallery->insert( $image );
                        } else {