Index: branches/js2-work/phase3/includes/api/ApiQueryAllmessages.php |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | $msg = wfMsgExt( $message, array( 'parsemag' ), $args ); |
92 | 92 | } else if ( $args ) { |
93 | 93 | $msgString = wfMsgGetKey( $message, true, false, false ); |
94 | | - $msg = wfMsgReplaceArgs( $msgString, $params['args'] ); |
| 94 | + $msg = wfMsgReplaceArgs( $msgString, $args ); |
95 | 95 | }else{ |
96 | 96 | $msg = wfMsgGetKey( $message, true, false, false ); |
97 | 97 | } |
— | — | @@ -145,10 +145,9 @@ |
146 | 146 | return array ( |
147 | 147 | 'messages' => 'Which messages to output. "*" means all messages', |
148 | 148 | 'prop' => 'Which properties to get', |
149 | | - 'enableparser' => 'Set to enable parser, will parses the wikitext of message \n' . |
150 | | - 'Will substitute magic words, handle templates etc.', |
151 | | - 'args' => 'Arguments to be substituted into message. \n' . |
152 | | - 'Will replace $1, $2 with values. ( values are \'|\' separated )', |
| 149 | + 'enableparser' => array('Set to enable parser, will parses the wikitext of message', |
| 150 | + 'Will substitute magic words, handle templates etc'), |
| 151 | + 'args' => 'Arguments to be substituted into message', |
153 | 152 | 'filter' => 'Return only messages that contain this string', |
154 | 153 | 'lang' => 'Return messages in this language', |
155 | 154 | 'from' => 'Return messages starting at this message', |