* Introduced list=allimages
authorVictor Vasiliev <vasilievvv@users.mediawiki.org>
Mon, 17 Mar 2008 08:25:22 +0000 (08:25 +0000)
committerVictor Vasiliev <vasilievvv@users.mediawiki.org>
Mon, 17 Mar 2008 08:25:22 +0000 (08:25 +0000)
* (bug 13371) Build page set from image hashes
* Mark non-existent messages in meta=allmessages as missing

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

index fcf3a40..7f8a61a 100644 (file)
@@ -109,6 +109,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Added action=edit
 * (bug 11401) Added xmldoublequote to xml formatter
 * Added rvsection parameter to prop=revisions to allow fetching the content of a certain section only
+* Introduced list=allimages
+* (bug 13371) Build page set from image hashes
+* Mark non-existent messages in meta=allmessages as missing
 
 === Languages updated in 1.13 ===
 
index d3110a5..6775ddb 100644 (file)
@@ -58,6 +58,7 @@ class ApiQuery extends ApiBase {
        );
 
        private $mQueryListModules = array (
+               'allimages' => 'ApiQueryAllimages',
                'allpages' => 'ApiQueryAllpages',
                'alllinks' => 'ApiQueryAllLinks',
                'allcategories' => 'ApiQueryAllCategories',
@@ -423,12 +424,14 @@ class ApiQuery extends ApiBase {
                $this->mAllowedGenerators = array();    // Will be repopulated
 
                $astriks = str_repeat('--- ', 8);
+               $astriks2 = str_repeat('*** ', 10);
                $msg .= "\n$astriks Query: Prop  $astriks\n\n";
                $msg .= $this->makeHelpMsgHelper($this->mQueryPropModules, 'prop');
                $msg .= "\n$astriks Query: List  $astriks\n\n";
                $msg .= $this->makeHelpMsgHelper($this->mQueryListModules, 'list');
                $msg .= "\n$astriks Query: Meta  $astriks\n\n";
                $msg .= $this->makeHelpMsgHelper($this->mQueryMetaModules, 'meta');
+               $msg .= "\n\n$astriks2 Modules: continuation  $astriks2\n\n";
 
                // Perform the base call last because the $this->mAllowedGenerators
                // will be updated inside makeHelpMsgHelper()
index ce4f6c5..aea3c4d 100644 (file)
@@ -87,7 +87,11 @@ class ApiQueryAllmessages extends ApiQueryBase {
                foreach( $messages as $name => $value ) {
                        $message = array();
                        $message['name'] = $name;
-                       $result->setContent( $message, $value );
+                       if( wfEmptyMsg( $name, $value ) ) {
+                               $message['missing'] = '';
+                       } else {
+                               $result->setContent( $message, $value );
+                       }
                        $messages_out[] = $message;
                }
                $result->setIndexedTagName( $messages_out, 'message' );