$wgHTML5 is a different variable than $wgHtml5 and the right name is the later.
Change-Id: Idfc2e2b61a791a2d9d6a33cbffe2fc12054e22d8
This commit is contained in:
parent
f35fcb89e9
commit
0473c33ecb
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue