r84328 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84327‎ | r84328 | r84329 >
Date:15:27, 19 March 2011
Author:maxsem
Status:ok
Tags:
Comment:
Fixed message borkage from r78593
Modified paths:
  • /trunk/phase3/includes/installer/CliInstaller.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/installer/CliInstaller.php
@@ -122,10 +122,12 @@
123123 $params = func_get_args();
124124 array_shift( $params );
125125
 126+ $text = wfMsgExt( $msg, array( 'parseinline' ), $params );
126127 /* parseinline has the nasty side-effect of putting encoded
127 - * angle brackets, around the message, so the substr removes
128 - * them. */
129 - $text = substr( wfMsgExt( $msg, array( 'parseinline' ), $params ), 4, -4 );
 128+ * angle brackets, around the message.
 129+ */
 130+ $text = preg_replace( '/(^<|>$)/', '', $text );
 131+
130132 $text = preg_replace( '/<a href="(.*?)".*?>(.*?)<\/a>/', '$2 &lt;$1&gt;', $text );
131133 echo html_entity_decode( strip_tags( $text ), ENT_QUOTES ) . "\n";
132134 flush();

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r78593* Add --wikiroot option to CLI installer so the user can give something besid...mah04:55, 19 December 2010

Status & tagging log