sequel of r38784, adding the test case for the 'submit' action
authorShinjiman <shinjiman@users.mediawiki.org>
Sat, 16 Aug 2008 10:09:18 +0000 (10:09 +0000)
committerShinjiman <shinjiman@users.mediawiki.org>
Sat, 16 Aug 2008 10:09:18 +0000 (10:09 +0000)
patch by PhiLiP

languages/LanguageConverter.php

index f6fb37e..b937915 100644 (file)
@@ -392,7 +392,7 @@ class LanguageConverter {
                $isredir = $wgRequest->getText( 'redirect', 'yes' );
                $action = $wgRequest->getText( 'action' );
                $linkconvert = $wgRequest->getText( 'linkconvert', 'yes' );
-               if ( $isredir == 'no' || $action == 'edit' || $linkconvert == 'no' ) {
+               if ( $isredir == 'no' || $action == 'edit' || $action == 'submit' || $linkconvert == 'no' ) {
                        return $text;
                } else {
                        $this->mTitleDisplay = $this->convert($text);
@@ -479,7 +479,7 @@ class LanguageConverter {
 
                $ns=NS_MAIN;
 
-               if ( $disableLinkConversion || $isredir == 'no' || $action == 'edit'
+               if ( $disableLinkConversion || $isredir == 'no' || $action == 'edit' || $action == 'submit'
                        || $linkconvert == 'no' || $wgUser->getOption('noconvertlink') == 1 ) {
                        return;
                }