From: Brion Vibber Date: Tue, 22 Jan 2008 20:59:22 +0000 (+0000) Subject: Tweak to r30053... Remove unnecessary sprintf() X-Git-Tag: 1.31.0-rc.0~49840 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=44d61e94b273ac427d45ae4aabd152e46443a7ac;p=lhc%2Fweb%2Fwiklou.git Tweak to r30053... Remove unnecessary sprintf() --- diff --git a/includes/WikiError.php b/includes/WikiError.php index dede157416..b155f9bf35 100644 --- a/includes/WikiError.php +++ b/includes/WikiError.php @@ -101,12 +101,12 @@ class WikiXmlError extends WikiError { /** @return string */ function getMessage() { - return sprintf( wfMsgHtml( 'xml-error-string', '%s', '%d', '%d', '%d%s', '%s' ), + // '$1 at line $2, col $3 (byte $4): $5', + return wfMsgHtml( 'xml-error-string', $this->mMessage, $this->mLine, $this->mColumn, - $this->mByte, - $this->mContext, + $this->mByte . $this->mContext, xml_error_string( $this->mXmlError ) ); }