From 0473c33ecb20c4829dfabcadef0a988c1c16e3fb Mon Sep 17 00:00:00 2001 From: Platonides Date: Mon, 26 Nov 2012 22:34:40 +0100 Subject: [PATCH] $wgHTML5 is a different variable than $wgHtml5 and the right name is the later. Change-Id: Idfc2e2b61a791a2d9d6a33cbffe2fc12054e22d8 --- tests/phpunit/includes/SanitizerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/includes/SanitizerTest.php b/tests/phpunit/includes/SanitizerTest.php index b6786473aa..90fd48240d 100644 --- a/tests/phpunit/includes/SanitizerTest.php +++ b/tests/phpunit/includes/SanitizerTest.php @@ -70,10 +70,10 @@ class SanitizerTest extends MediaWikiTestCase { * @param Boolean $escaped Wheter sanitizer let the tag in or escape it (ie: '<video>') */ function testRemovehtmltagsOnHtml5Tags( $tag, $escaped ) { + global $wgHtml5; # Enable HTML5 mode - global $wgHTML5; - $save = $wgHTML5; + $save = $wgHtml5; $wgHTML5 = true; if( $escaped ) { @@ -85,7 +85,7 @@ class SanitizerTest extends MediaWikiTestCase { Sanitizer::removeHTMLtags( "<$tag>" ) ); } - $wgHTML5 = $save; + $wgHtml5 = $save; } /** -- 2.20.1