From: Arne Heizmann Date: Tue, 10 Aug 2004 22:48:02 +0000 (+0000) Subject: With &debugmsg=1, PHP output a warning because the link trail no longer X-Git-Tag: 1.5.0alpha1~2427 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=b28ab61f58422fb2a459454c04c16edf3afc19fd;p=lhc%2Fweb%2Fwiklou.git With &debugmsg=1, PHP output a warning because the link trail no longer constituted a valid regular expression; fix that --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index a32fa8c263..7508fb9f60 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -290,7 +290,12 @@ $wgReplacementKeys = array( "$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", "$9" function wfMsg( $key ) { global $wgRequest; if ( $wgRequest->getVal( 'debugmsg' ) ) - return $key; + { + if ( $key == 'linktrail' /* a special case where we want to return something specific */ ) + return "/^()(.*)$/sD"; + else + return $key; + } $args = func_get_args(); if ( count( $args ) ) { array_shift( $args );