Commiting simplest hack fix for strict errors
authorSam Reed <reedy@users.mediawiki.org>
Thu, 24 Mar 2011 21:21:15 +0000 (21:21 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 24 Mar 2011 21:21:15 +0000 (21:21 +0000)
Instantiating new instance of UtfNormal

Will probably nee tidying up later, if we have some other instance we can normally use

languages/Language.php

index a6ae98a..360c9b4 100644 (file)
@@ -2035,7 +2035,8 @@ class Language {
         */
        function normalize( $s ) {
                global $wgAllUnicodeFixes;
-               $s = UtfNormal::cleanUp( $s );
+               $u = new UtfNormal;
+               $s = $u->cleanUp( $s );
                if ( $wgAllUnicodeFixes ) {
                        $s = $this->transformUsingPairFile( 'normalize-ar.ser', $s );
                        $s = $this->transformUsingPairFile( 'normalize-ml.ser', $s );