X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Flanguage%2FgenerateNormalizerDataMl.php;h=5f865ce604b14a30d7a2536c8cc67ce5bb0218f3;hb=de64366f58f0af7a02a417833c8e0605e4140fab;hp=5b75d8b43dba51817803f8c63b5a09b61b374fe4;hpb=a0a8f165506a55c4d70ef2bb3cec4d4309ed33d8;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/language/generateNormalizerDataMl.php b/maintenance/language/generateNormalizerDataMl.php index 5b75d8b43d..5f865ce604 100644 --- a/maintenance/language/generateNormalizerDataMl.php +++ b/maintenance/language/generateNormalizerDataMl.php @@ -23,6 +23,8 @@ require_once __DIR__ . '/../Maintenance.php'; +use Wikimedia\StaticArrayWriter; + /** * Generates the normalizer data file for Malayalam. * @@ -61,7 +63,8 @@ class GenerateNormalizerDataMl extends Maintenance { } global $IP; - file_put_contents( "$IP/languages/data/normalize-ml.php", wfMakeStaticArrayFile( + $writer = new StaticArrayWriter(); + file_put_contents( "$IP/languages/data/normalize-ml.php", $writer->create( $pairs, 'File created by generateNormalizerDataMl.php' ) );