Bug 3116: Division by zero on [[Image:Foo.png|123x123px|]]
[lhc/web/wiklou.git] / includes / SpecialExport.php
index 40fef6a..5fda2be 100644 (file)
@@ -236,7 +236,7 @@ class WikiExporter {
        function pageByName( $name ) {
                $title = Title::newFromText( $name );
                if( is_null( $title ) ) {
-                       return WikiError( "Can't export invalid title" );
+                       return new WikiError( "Can't export invalid title" );
                } else {
                        return $this->pageByTitle( $title );
                }