$wgHTML5 is a different variable than $wgHtml5 and the right name is the later.

Change-Id: Idfc2e2b61a791a2d9d6a33cbffe2fc12054e22d8
This commit is contained in:
Platonides 2012-11-26 22:34:40 +01:00
parent f35fcb89e9
commit 0473c33ecb

View file

@ -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;
}
/**