r39466 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39465‎ | r39466 | r39467 >
Date:10:09, 16 August 2008
Author:shinjiman
Status:old
Tags:
Comment:
sequel of r38784, adding the test case for the 'submit' action
patch by PhiLiP
Modified paths:
  • /trunk/phase3/languages/LanguageConverter.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageConverter.php
@@ -392,7 +392,7 @@
393393 $isredir = $wgRequest->getText( 'redirect', 'yes' );
394394 $action = $wgRequest->getText( 'action' );
395395 $linkconvert = $wgRequest->getText( 'linkconvert', 'yes' );
396 - if ( $isredir == 'no' || $action == 'edit' || $linkconvert == 'no' ) {
 396+ if ( $isredir == 'no' || $action == 'edit' || $action == 'submit' || $linkconvert == 'no' ) {
397397 return $text;
398398 } else {
399399 $this->mTitleDisplay = $this->convert($text);
@@ -479,7 +479,7 @@
480480
481481 $ns=NS_MAIN;
482482
483 - if ( $disableLinkConversion || $isredir == 'no' || $action == 'edit'
 483+ if ( $disableLinkConversion || $isredir == 'no' || $action == 'edit' || $action == 'submit'
484484 || $linkconvert == 'no' || $wgUser->getOption('noconvertlink') == 1 ) {
485485 return;
486486 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r38784* Added $wgDisableTitleConversion to disabling the conversion for all pages o...shinjiman14:26, 7 August 2008

Status & tagging log