From: MatmaRex Date: Thu, 20 Jun 2013 22:18:36 +0000 (+0200) Subject: displaytitle: Pass-by-reference fix for PHP 5.4 X-Git-Tag: 1.31.0-rc.0~19380^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=d1b64093eff3fa4c96fe762f93745ba2e74c7104;p=lhc%2Fweb%2Fwiklou.git displaytitle: Pass-by-reference fix for PHP 5.4 PHP 5.4 includes some pass-by-reference changes which apparently make the '&' sigil necessary here. Spotted by Mormegil . Followup to Ie162535b. Change-Id: I038fa7f8e1559c95dba7b9b498fc1d1f5eb76887 --- diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 2cdfc6e934..8b513a6c5e 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -377,7 +377,7 @@ class CoreParserFunctions { // disallow some styles that could be used to bypass $wgRestrictDisplayTitle if ( $wgRestrictDisplayTitle ) { - $htmlTagsCallback = function ( $params ) { + $htmlTagsCallback = function ( &$params ) { $decoded = Sanitizer::decodeTagAttributes( $params ); if ( isset( $decoded['style'] ) ) {