From d1b64093eff3fa4c96fe762f93745ba2e74c7104 Mon Sep 17 00:00:00 2001 From: MatmaRex Date: Fri, 21 Jun 2013 00:18:36 +0200 Subject: [PATCH] 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 --- includes/parser/CoreParserFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] ) ) { -- 2.20.1