Index: trunk/phase3/includes/installer/CliInstaller.php |
— | — | @@ -122,10 +122,12 @@ |
123 | 123 | $params = func_get_args(); |
124 | 124 | array_shift( $params ); |
125 | 125 | |
| 126 | + $text = wfMsgExt( $msg, array( 'parseinline' ), $params ); |
126 | 127 | /* 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 | + |
130 | 132 | $text = preg_replace( '/<a href="(.*?)".*?>(.*?)<\/a>/', '$2 <$1>', $text ); |
131 | 133 | echo html_entity_decode( strip_tags( $text ), ENT_QUOTES ) . "\n"; |
132 | 134 | flush(); |