r108678 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108677‎ | r108678 | r108679 >
Date:20:45, 11 January 2012
Author:ialex
Status:ok
Tags:
Comment:
And I forogot to commit this file in r108677
Modified paths:
  • /trunk/extensions/Configure/settings/WebExtension.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Configure/settings/WebExtension.php
@@ -196,14 +196,14 @@
197197 $ret = '<fieldset><legend>' . htmlspecialchars( $this->mName ) . '</legend>';
198198 if ( count( $errors = $this->checkSettingsDependencies() ) ) {
199199 $ret .= "<span class=\"errorbox\">";
200 - $ret .= wfMsgExt( 'configure-ext-settings-dep-errors', array( 'parseinline' ), count( $errors ) );
 200+ $ret .= wfMessage( 'configure-ext-settings-dep-errors', count( $errors ) )->parse();
201201 $ret .= "<ul>\n";
202202 foreach ( $errors as $err ) {
203203 list( $setting, $req, $cur ) = $err;
204204 $setting = '$'.$setting;
205205 $req = self::prettifyForDisplay( $req );
206206 $cur = self::prettifyForDisplay( $cur );
207 - $ret .= '<li>' . wfMsgExt( 'configure-ext-settings-dep-error', array( 'parseinline' ), $setting, $req, $cur ) . "</li>\n";
 207+ $ret .= '<li>' . wfMessage( 'configure-ext-settings-dep-error', $setting, $req, $cur )->parse() . "</li>\n";
208208 }
209209 return $ret . "</ul>\n</span>\n</fieldset>";
210210 }
@@ -211,11 +211,11 @@
212212 $warnings = array();
213213
214214 if ( $this->mDbChange ) {
215 - $warnings[] = wfMsgExt( 'configure-ext-schemachange', array( 'parseinline' ) );
 215+ $warnings[] = wfMessage( 'configure-ext-schemachange' )->parse();
216216 }
217217 if ( count( $this->mExtensionsDependencies ) ) {
218218 global $wgLang;
219 - $warnings[] = wfMsgExt( 'configure-ext-ext-dependencies', array( 'parseinline' ), $wgLang->listToText( $this->mExtensionsDependencies ), count( $this->mExtensionsDependencies ) );
 219+ $warnings[] = wfMessage( 'configure-ext-ext-dependencies', $wgLang->listToText( $this->mExtensionsDependencies ), count( $this->mExtensionsDependencies ) )->parse();
220220 }
221221
222222 if ( count( $warnings ) ) {
@@ -230,20 +230,20 @@
231231 $ret .= "</span><br clear=\"left\" />\n";
232232 }
233233
234 - $use = wfMsgExt( 'configure-ext-use', array( 'parseinline' ) );
 234+ $use = wfMessage( 'configure-ext-use' )->parse();
235235 $ret .= "<h2>{$use}</h2>\n";
236236 $ret .= "<table class=\"configure-table configure-table-ext\"><tr><td>\n";
237237 $checkName = $this->getCheckName();
238 - $ret .= Xml::checkLabel( wfMsg( 'configure-ext-use-extension' ), $checkName, $checkName, $this->isActivated() );
 238+ $ret .= Xml::checkLabel( wfMessage( 'configure-ext-use-extension' )->text(), $checkName, $checkName, $this->isActivated() );
239239 $ret .= "</td></tr>\n";
240240 if ( !empty( $this->mDoc ) ) {
241241 $ret .= "<tr><td>\n";
242 - $ret .= '<p>' . Xml::element( 'a', array( 'href' => $this->mDoc ), wfMsg( 'configure-ext-doc' ) ) . "</p>\n";
 242+ $ret .= '<p>' . Xml::element( 'a', array( 'href' => $this->mDoc ), wfMessage( 'configure-ext-doc' )->text() ) . "</p>\n";
243243 $ret .= "</td></tr>";
244244 }
245245 $ret .= "</table>\n";
246246 if ( count( $this->mSettings ) ) {
247 - $settings = wfMsgExt( 'configure-ext-settings', array( 'parseinline' ) );
 247+ $settings = wfMessage( 'configure-ext-settings' )->parse();
248248 $ret .= "<h2>{$settings}</h2>\n";
249249 $ret .= "<table class=\"configure-table\">\n";
250250 foreach ( $this->mSettings as $name => $type ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r108677* Use wfMessage() instead of wfMsg*()...ialex20:44, 11 January 2012

Status & tagging log