https://bugzilla.wikimedia.org/show_bug.cgi?id=28002
--- Comment #3 from Reedy <s...@reedyboy.net> 2011-03-12 12:54:25 UTC --- Bleh, ApiPageSet // Only one of the titles/pageids/revids is allowed at the same time $dataSource = null; if ( isset( $params['titles'] ) ) { $dataSource = 'titles'; } if ( isset( $params['pageids'] ) ) { if ( isset( $dataSource ) ) { $this->dieUsage( "Cannot use 'pageids' at the same time as '$dataSource'", 'multisource' ); } $dataSource = 'pageids'; } if ( isset( $params['revids'] ) ) { if ( isset( $dataSource ) ) { $this->dieUsage( "Cannot use 'revids' at the same time as '$dataSource'", 'multisource' ); } $dataSource = 'revids'; } And then switch ( $dataSource ) { //snip default: // Do nothing - some queries do not need any of the data sources. break; } So we need a way to track for the export if we haven't specified a title when we needed to... Though, it does do // only export when there are titles if ( !count( $exportTitles ) ) { return; } It probably should just fail/do more like what http://en.wikipedia.org/w/api.php?action=query&title=Main%20page&export does, giving "<api />" -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l