Make $wgExperimentalHtmlIds fall back on modern HTML5 mode
authorMax Semenik <maxsem.wiki@gmail.com>
Tue, 12 Sep 2017 01:28:51 +0000 (18:28 -0700)
committerMax Semenik <maxsem.wiki@gmail.com>
Tue, 12 Sep 2017 01:28:51 +0000 (18:28 -0700)
This is a first step of deprecation, next would be to swap the two
modes, making html5 fall back on html5-legacy. No separate release
notes are required as this is part of deprecation already documented.

Change-Id: I132cffbc70bf76f9863d61fd109c73da7bdaeb18

includes/Setup.php

index 68e3d96..d4612dd 100644 (file)
@@ -284,7 +284,7 @@ unset( $repo ); // no global pollution; destroy reference
 
 // Convert this deprecated setting to modern system
 if ( $wgExperimentalHtmlIds ) {
-       $wgFragmentMode = [ 'html5-legacy', 'legacy' ];
+       $wgFragmentMode = [ 'html5-legacy', 'html5' ];
 }
 
 $rcMaxAgeDays = $wgRCMaxAge / ( 3600 * 24 );