From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- includes/normal/Utf8CaseGenerate.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/normal/Utf8CaseGenerate.php') diff --git a/includes/normal/Utf8CaseGenerate.php b/includes/normal/Utf8CaseGenerate.php index 368d0bcd..adc3ef22 100644 --- a/includes/normal/Utf8CaseGenerate.php +++ b/includes/normal/Utf8CaseGenerate.php @@ -25,7 +25,7 @@ * @ingroup UtfNormal */ -if( php_sapi_name() != 'cli' ) { +if( PHP_SAPI != 'cli' ) { die( "Run me from the command line please.\n" ); } @@ -49,7 +49,7 @@ while( false !== ($line = fgets( $in ) ) ) { $name = $columns[1]; $simpleUpper = $columns[12]; $simpleLower = $columns[13]; - + $source = codepointToUtf8( hexdec( $codepoint ) ); if( $simpleUpper ) { $wikiUpperChars[$source] = codepointToUtf8( hexdec( $simpleUpper ) ); @@ -60,7 +60,7 @@ while( false !== ($line = fgets( $in ) ) ) { } fclose( $in ); -$out = fopen("Utf8Case.php", "wt"); +$out = fopen( "Utf8Case.php", "wt" ); if( $out ) { $outUpperChars = escapeArray( $wikiUpperChars ); $outLowerChars = escapeArray( $wikiLowerChars ); -- cgit v1.2.3-54-g00ecf