jenkins-bot has submitted this change and it was merged.
Change subject: Disable LQT on office wiki
......................................................................
Disable LQT on office wiki
Bug: T76590
Change-Id: Ia557fc05c855afeb682865e0a458b8381963202d
---
M wmf-config/CommonSettings.php
M wmf-config/InitialiseSettings.php
A wmf-config/liquidthreads.namespaces.php
3 files changed, 100 insertions(+), 1 deletion(-)
Approvals:
EBernhardson: Looks good to me, approved
jenkins-bot: Verified
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index eaf6a8c..7bbf862 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -1745,6 +1745,19 @@
if ( $wmgUseLiquidThreads ) {
require_once( "$wmfConfigDir/liquidthreads.php" );
+} elseif ( $wmgLiquidThreadsBackfill ) {
+ // Preserve access to LQT edits after removing the extension
+ define( 'NS_LQT_THREAD', 90 );
+ define( 'NS_LQT_THREAD_TALK', 91 );
+ define( 'NS_LQT_SUMMARY', 92 );
+ define( 'NS_LQT_SUMMARY_TALK', 93 );
+ $wgExtensionMessagesFiles['LiquidThreadsNamespaces'] = __DIR__ .
'/liquidthreads.namespaces.php';
+ $wgHooks['CanonicalNamespaces'][] = function ( &$list ) {
+ $list[NS_LQT_THREAD] = "Thread";
+ $list[NS_LQT_THREAD_TALK] = "Thread_talk";
+ $list[NS_LQT_SUMMARY] = "Summary";
+ $list[NS_LQT_SUMMARY_TALK] = "Summary_talk";
+ };
}
if ( $wmgDonationInterface ) {
diff --git a/wmf-config/InitialiseSettings.php
b/wmf-config/InitialiseSettings.php
index ac332b1..1e1de00 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -11023,7 +11023,6 @@
'fiwikimedia' => true, // Bug 37778
'huwiki' => true, // Bug 22909 -- Andrew 2010-09-06
'mediawikiwiki' => true,
- 'officewiki' => true, // Erik requested, by mail.
'ptwikibooks' => true, // Bug 24143 -- Andrew 2010-08-16
'strategywiki' => true, // Philippe says it's cool -- Andrew 2009-10-13
'sewikimedia' => true, // Bug 24377 -- Andrew 2010-08-28
@@ -11040,6 +11039,12 @@
'ptwikibooks' => false, // Bug 48578
),
+'wmgLiquidThreadsBackfill' => array(
+ // Preserve access to LQT namespaces after removing the extension
+ 'default' => false,
+ 'officewiki' => true, // replaced with Flow 2014-11-25
+),
+
'wmgLQTUserControlNamespaces' => array(
'default' => null,
'enwikinews' => array( 102 ), // Comments namespace
diff --git a/wmf-config/liquidthreads.namespaces.php
b/wmf-config/liquidthreads.namespaces.php
new file mode 100644
index 0000000..53acfad
--- /dev/null
+++ b/wmf-config/liquidthreads.namespaces.php
@@ -0,0 +1,81 @@
+<?php
+
+$namespaceNames = array();
+
+// For wikis without LiquidThreads installed.
+if ( ! defined( 'NS_LQT_THREAD' ) ) {
+ define( 'NS_LQT_THREAD', 90 );
+ define( 'NS_LQT_THREAD_TALK', 91 );
+ define( 'NS_LQT_SUMMARY', 92 );
+ define( 'NS_LQT_SUMMARY_TALK', 93 );
+}
+
+$namespaceNames['en'] = array(
+ NS_LQT_THREAD => 'Thread',
+ NS_LQT_THREAD_TALK => 'Thread_talk',
+ NS_LQT_SUMMARY => 'Summary',
+ NS_LQT_SUMMARY_TALK => 'Summary_talk',
+);
+
+$namespaceNames['de'] = array(
+ NS_LQT_THREAD => 'Thema',
+ NS_LQT_THREAD_TALK => 'Thema_Diskussion',
+ NS_LQT_SUMMARY => 'Themazusammenfassung',
+ NS_LQT_SUMMARY_TALK => 'Themazusammenfassung_Diskussion',
+);
+
+$namespaceNames['fi'] = array(
+ NS_LQT_THREAD => 'Viestiketju',
+ NS_LQT_THREAD_TALK => 'Keskustelu_viestiketjusta',
+ NS_LQT_SUMMARY => 'Yhteenveto',
+ NS_LQT_SUMMARY_TALK => 'Keskustelu_yhteenvedosta',
+);
+
+$namespaceNames['hu'] = array(
+ NS_LQT_THREAD => 'Téma',
+ NS_LQT_THREAD_TALK => 'Témavita',
+ NS_LQT_SUMMARY => 'Összefoglaló',
+ NS_LQT_SUMMARY_TALK => 'Összefoglaló-vita',
+);
+
+$namespaceNames['id'] = array(
+ NS_LQT_THREAD => 'Utas',
+ NS_LQT_THREAD_TALK => 'Pembicaraan_Utas',
+ NS_LQT_SUMMARY => 'Ringkasan',
+ NS_LQT_SUMMARY_TALK => 'Pembicaraan_Ringkasan',
+);
+
+$namespaceNames['nl'] = array(
+ NS_LQT_THREAD => 'Onderwerp',
+ NS_LQT_THREAD_TALK => 'Overleg_onderwerp',
+ NS_LQT_SUMMARY => 'Samenvatting',
+ NS_LQT_SUMMARY_TALK => 'Overleg_samenvatting',
+);
+
+$namespaceNames['pt'] = array(
+ NS_LQT_THREAD => 'Tópico',
+ NS_LQT_THREAD_TALK => 'Tópico_discussão',
+ NS_LQT_SUMMARY => 'Resumo',
+ NS_LQT_SUMMARY_TALK => 'Resumo_discussão',
+);
+
+$namespaceNames['sv'] = array(
+ NS_LQT_THREAD => 'Tråd',
+ NS_LQT_THREAD_TALK => 'Tråddiskussion',
+ NS_LQT_SUMMARY => 'Summering',
+ NS_LQT_SUMMARY_TALK => 'Summeringsdiskussion',
+);
+
+$namespaceNames['zh-hans'] = array(
+ NS_LQT_THREAD => '主题',
+ NS_LQT_THREAD_TALK => '主题讨论',
+ NS_LQT_SUMMARY => '摘要',
+ NS_LQT_SUMMARY_TALK => '摘要讨论',
+);
+
+$namespaceNames['zh-hant'] = array(
+ NS_LQT_THREAD => '主題',
+ NS_LQT_THREAD_TALK => '主題討論',
+ NS_LQT_SUMMARY => '摘要',
+ NS_LQT_SUMMARY_TALK => '摘要討論',
+);
--
To view, visit https://gerrit.wikimedia.org/r/175563
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia557fc05c855afeb682865e0a458b8381963202d
Gerrit-PatchSet: 2
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits