From f1ece7a090b3f68c1ff3c646073b65bf59522d95 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 5 Jun 2011 19:22:49 +0000 Subject: [PATCH] * (bug 28002) Internal error in ApiFormatRaw::getMimeType 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 | 1 + includes/api/ApiQuery.php | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index 82e5ca0ab9..28a1dae8a3 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -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 === diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index ded1ea54a1..ac679ae552 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -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 -- 2.20.1