$wgHTML5 is a different variable than $wgHtml5 and the right name is the later.
authorPlatonides <platonides@gmail.com>
Mon, 26 Nov 2012 21:34:40 +0000 (22:34 +0100)
committerPlatonides <platonides@gmail.com>
Mon, 26 Nov 2012 21:34:40 +0000 (22:34 +0100)
Change-Id: Idfc2e2b61a791a2d9d6a33cbffe2fc12054e22d8

tests/phpunit/includes/SanitizerTest.php

index b678647..90fd482 100644 (file)
@@ -70,10 +70,10 @@ class SanitizerTest extends MediaWikiTestCase {
         * @param Boolean $escaped Wheter sanitizer let the tag in or escape it (ie: '&lt;video&gt;')
         */
        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;
        }
 
        /**