| Index: trunk/phase3/includes/api/ApiQueryAllmessages.php |
| — | — | @@ -158,7 +158,9 @@ |
| 159 | 159 | } else { |
| 160 | 160 | $msgString = $msg->plain(); |
| 161 | 161 | } |
| 162 | | - ApiResult::setContent( $a, $msgString ); |
| | 162 | + if ( !$params['nocontent'] ) { |
| | 163 | + ApiResult::setContent( $a, $msgString ); |
| | 164 | + } |
| 163 | 165 | if ( isset( $prop['default'] ) ) { |
| 164 | 166 | $default = wfMessage( $message )->inLanguage( $langObj )->useDatabase( false ); |
| 165 | 167 | if ( !$default->exists() ) { |
| — | — | @@ -204,6 +206,7 @@ |
| 205 | 207 | ) |
| 206 | 208 | ), |
| 207 | 209 | 'enableparser' => false, |
| | 210 | + 'nocontent' => false, |
| 208 | 211 | 'args' => array( |
| 209 | 212 | ApiBase::PARAM_ISMULTI => true, |
| 210 | 213 | ApiBase::PARAM_ALLOW_DUPLICATES => true, |
| — | — | @@ -230,7 +233,8 @@ |
| 231 | 234 | 'messages' => 'Which messages to output. "*" (default) means all messages', |
| 232 | 235 | 'prop' => 'Which properties to get', |
| 233 | 236 | 'enableparser' => array( 'Set to enable parser, will preprocess the wikitext of message', |
| 234 | | - 'Will substitute magic words, handle templates etc.' ), |
| | 237 | + 'Will substitute magic words, handle templates etc.' ), |
| | 238 | + 'nocontent' => 'Set to not include the content of the messages in the output.', |
| 235 | 239 | 'title' => 'Page name to use as context when parsing message (for enableparser option)', |
| 236 | 240 | 'args' => 'Arguments to be substituted into message', |
| 237 | 241 | 'prefix' => 'Return messages with this prefix', |
| Index: trunk/phase3/RELEASE-NOTES-1.19 |
| — | — | @@ -87,6 +87,7 @@ |
| 88 | 88 | * (bug 18634) Create API to fetch MediaWiki's language fallback tree structure. |
| 89 | 89 | * (bug 26885) Allow show/hide of account blocks, temporary blocks and single IP |
| 90 | 90 | address blocks for list=blocks. |
| | 91 | +* (bug 30591) Add support to only return keys in ApiAllMessages. |
| 91 | 92 | |
| 92 | 93 | === Languages updated in 1.19 === |
| 93 | 94 | |