From: Platonides Date: Mon, 26 Nov 2012 21:34:40 +0000 (+0100) Subject: $wgHTML5 is a different variable than $wgHtml5 and the right name is the later. X-Git-Tag: 1.31.0-rc.0~21499^2~1 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=0473c33ecb20c4829dfabcadef0a988c1c16e3fb;p=lhc%2Fweb%2Fwiklou.git $wgHTML5 is a different variable than $wgHtml5 and the right name is the later. Change-Id: Idfc2e2b61a791a2d9d6a33cbffe2fc12054e22d8 --- 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; } /**