From a3fbdaaa2c4eb5ddc6bfbd62ae57a7804a307f12 Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 11 Jan 2013 15:49:33 +0000 Subject: [PATCH] Remove $wgBug34832TransitionalRollback Per "@todo This variable should be removed (implicitly false) in 1.20 or earlier." Change-Id: Ibd6d0199848ef4631d13e1a27044c793ef15ec02 --- RELEASE-NOTES-1.21 | 1 + includes/DefaultSettings.php | 11 ----------- includes/parser/Parser.php | 11 ++--------- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/RELEASE-NOTES-1.21 b/RELEASE-NOTES-1.21 index f19a1b08e0..8a26d035f1 100644 --- a/RELEASE-NOTES-1.21 +++ b/RELEASE-NOTES-1.21 @@ -16,6 +16,7 @@ production. * (bug 39957) Added $wgUnwatchedPageThreshold, specifying minimum count of page watchers required for the number to be accessible to users without the unwatchedpages permission. +* $wgBug34832TransitionalRollback has been removed. === New features in 1.21 === * (bug 38110) Schema changes (adding or dropping tables, indicies and diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index f8738ddbfe..d254ef6077 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2469,17 +2469,6 @@ $wgLocaltimezone = null; */ $wgLocalTZoffset = null; -/** - * If set to true, this will roll back a few bug fixes introduced in 1.19, - * emulating the 1.18 behaviour, to avoid introducing bug 34832. In 1.19, - * language variant conversion is disabled in interface messages. Setting this - * to true re-enables it. - * - * @todo This variable should be removed (implicitly false) in 1.20 or earlier. - */ -$wgBug34832TransitionalRollback = true; - - /** @} */ # End of language/charset settings /*************************************************************************//** diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 0f22755e09..d47ccb9592 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -412,9 +412,7 @@ class Parser { if ( !( $options->getDisableContentConversion() || isset( $this->mDoubleUnderscores['nocontentconvert'] ) ) ) { - # Run convert unconditionally in 1.18-compatible mode - global $wgBug34832TransitionalRollback; - if ( $wgBug34832TransitionalRollback || !$this->mOptions->getInterfaceMessage() ) { + if ( !$this->mOptions->getInterfaceMessage() ) { # The position of the convert() call should not be changed. it # assumes that the links are all replaced and the only thing left # is the mark. @@ -781,12 +779,7 @@ class Parser { * Get the language object for language conversion */ function getConverterLanguage() { - global $wgBug34832TransitionalRollback, $wgContLang; - if ( $wgBug34832TransitionalRollback ) { - return $wgContLang; - } else { - return $this->getTargetLanguage(); - } + return $this->getTargetLanguage(); } /** -- 2.20.1