From bb3dca86f388edbde7f2f3def486b415038acb5e Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Sat, 19 Mar 2011 15:27:24 +0000 Subject: [PATCH] Fixed message borkage from r78593 --- includes/installer/CliInstaller.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/installer/CliInstaller.php b/includes/installer/CliInstaller.php index f4b9958a9a..46754a70f0 100644 --- a/includes/installer/CliInstaller.php +++ b/includes/installer/CliInstaller.php @@ -122,10 +122,12 @@ class CliInstaller extends Installer { $params = func_get_args(); array_shift( $params ); + $text = wfMsgExt( $msg, array( 'parseinline' ), $params ); /* parseinline has the nasty side-effect of putting encoded - * angle brackets, around the message, so the substr removes - * them. */ - $text = substr( wfMsgExt( $msg, array( 'parseinline' ), $params ), 4, -4 ); + * angle brackets, around the message. + */ + $text = preg_replace( '/(^<|>$)/', '', $text ); + $text = preg_replace( '/(.*?)<\/a>/', '$2 <$1>', $text ); echo html_entity_decode( strip_tags( $text ), ENT_QUOTES ) . "\n"; flush(); -- 2.20.1