PHP doesn't have a "none" constant, changed to "null"
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 11 Apr 2009 11:24:19 +0000 (11:24 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 11 Apr 2009 11:24:19 +0000 (11:24 +0000)
languages/Language.php
languages/LanguageConverter.php

index cf4949c..e296d90 100644 (file)
@@ -2183,7 +2183,7 @@ class Language {
        }
 
        # convert text to different variants of a language.
-       function convert( $text, $isTitle = false, $variant = none) {
+       function convert( $text, $isTitle = false, $variant = null ) {
                return $this->mConverter->convert($text, $isTitle, $variant);
        }
 
index 5b48ef9..df5409b 100644 (file)
@@ -491,7 +491,7 @@ class LanguageConverter {
         * @return string converted text
         * @public
         */
-       function convert( $text, $isTitle = false, $variant = none ) {
+       function convert( $text, $isTitle = false, $variant = null ) {
 
                $mw =& MagicWord::get( 'notitleconvert' );
                if( $mw->matchAndRemove( $text ) )