* (bug 28002) Internal error in ApiFormatRaw::getMimeType
authorSam Reed <reedy@users.mediawiki.org>
Sun, 5 Jun 2011 19:22:49 +0000 (19:22 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 5 Jun 2011 19:22:49 +0000 (19:22 +0000)
If we just return when no titles, we don't format anything, and everything breaks

Might aswell just unconditionally export, as even with no titles, we still get all the siteinfo and such

RELEASE-NOTES-1.19
includes/api/ApiQuery.php

index 82e5ca0..28a1dae 100644 (file)
@@ -98,6 +98,7 @@ production.
 * (bug 29267) always give the servername for meta=siteinfo&siprop=dbrepllag
 * (bug 28897) rvparse doesn’t seem to work with rvsection
 * (bug 25734) API: possible issue with revids validation
+* (bug 28002) Internal error in ApiFormatRaw::getMimeType
 
 === Languages updated in 1.19 ===
 
index ded1ea5..ac679ae 100644 (file)
@@ -484,10 +484,6 @@ class ApiQuery extends ApiBase {
                                }
                        }
                }
-               // only export when there are titles
-               if ( !count( $exportTitles ) ) {
-                       return;
-               }
 
                $exporter = new WikiExporter( $this->getDB() );
                // WikiExporter writes to stdout, so catch its