From b02933ace8dd199e4cab3c91c821b018d986b554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 23 Dec 2005 05:06:17 +0000 Subject: [PATCH] * Wrap error messages in (just like ) * Error message "expecting a key that matched /^[^0-9]+$/" => "expecting a non-integer key" --- Cite.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Cite.php b/Cite.php index 656ca851..d2d7be8a 100644 --- a/Cite.php +++ b/Cite.php @@ -56,7 +56,7 @@ function wfCite() { 'cite_croak' => 'Cite croaked; $1: $2', 'cite_error' => 'Cite error $1; $2', - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Invalid call; expecting a key that matched /^[^0-9]+$/', + 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Invalid call; expecting a non-integer key', 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Invalid call; no key specified', 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Invalid call; too many keys specified', 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Invalid call; no input specified', @@ -475,7 +475,12 @@ function wfCite() { function error( $id ) { if ( $id > 0 ) // User errors are positive - return $this->parse( wfMsgforContent( 'cite_error', $id, wfMsgForContent( "cite_error_$id" ) ) ); + return + $this->parse( + '' . + wfMsgforContent( 'cite_error', $id, wfMsgForContent( "cite_error_$id" ) ) . + '' + ); else if ( $id < 0 ) return wfMsgforContent( 'cite_error', $id ); }