X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Flanguage%2FgenerateCollationData.php;h=a10592055f6fd1c0bf58774b1fe39efe3593f4c9;hb=56328159760c103f614362c24214e8c5de3f1fd2;hp=32adafd7476d114d1b66a7bb66769b3d47999bba;hpb=d792e31a6391292f7027b48c70447138da8b8afc;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/language/generateCollationData.php b/maintenance/language/generateCollationData.php index 32adafd747..a10592055f 100644 --- a/maintenance/language/generateCollationData.php +++ b/maintenance/language/generateCollationData.php @@ -263,7 +263,7 @@ class GenerateCollationData extends Maintenance { // character has a longer primary weight sequence with an initial // portion equal to the first character, then remove the second // character. This avoids having characters like U+A732 (double A) - // polluting the basic latin sort area. + // polluting the basic Latin sort area. foreach ( $this->groups as $weight => $group ) { if ( preg_match( '/(\.[0-9A-F]*)\./', $weight, $m ) ) { @@ -321,9 +321,10 @@ class GenerateCollationData extends Maintenance { print "Out of order: $numOutOfOrder / " . count( $headerChars ) . "\n"; global $IP; + $writer = new StaticArrayWriter(); file_put_contents( "$IP/includes/collation/data/first-letters-root.php", - wfMakeStaticArrayFile( $headerChars, 'File created by generateCollationData.php' ) + $writer->create( $headerChars, 'File created by generateCollationData.php' ) ); echo "first-letters-root: file written.\n"; }