jenkins-bot has submitted this change and it was merged.

Change subject: Add 'Contact Wikipedia' footer link on test/test2
......................................................................


Add 'Contact Wikipedia' footer link on test/test2

Adds a configuration variable, '$wmgUseFooterContactLink' (default false). When
true, adds a 'Contact Wikipedia' link to page footer. Enabled for test and
test2wikis, with an eye toward enabling on enwiki.

Bug: 46392
Change-Id: Iab1f5f52742e899fc40028bb5993c024241a87bd
---
M wmf-config/CommonSettings.php
M wmf-config/InitialiseSettings.php
2 files changed, 15 insertions(+), 0 deletions(-)

Approvals:
  Ori.livneh: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 01ed08f..1c47b0a 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -1302,6 +1302,14 @@
        $wgHiddenPrefs[] = 'minordefault';
 }
 
+if ( $wmgUseFooterContactLink ) {
+       $wgHooks['SkinTemplateOutputPageBeforeExec'][] = function ( $sk, &$tpl 
) {
+               $tpl->set( 'contact', $sk->footerLink( 'contact', 'contact-url' 
) );
+               $tpl->data['footerlinks']['places'][] = 'contact';
+               return true;
+       };
+}
+
 // bug 33186: turn off incomplete feature action=imagerotate
 $wgAPIModules['imagerotate'] = 'ApiDisabled';
 
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 3d9db8e..7ca6fe3 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -10079,6 +10079,13 @@
        'default' => true,
 ),
 
+'wmgUseFooterContactLink' => array(
+       'default' => false,
+       // 'enwiki' => true,  // Bug 46392
+       'test2wiki' => true,
+       'testwiki' => true,
+),
+
 'wmgUserDailyContribs' => array(
        // Actively used by researchers and analysts.
        // Contact person: Dario Taraborelli <[email protected]>

-- 
To view, visit https://gerrit.wikimedia.org/r/57649
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iab1f5f52742e899fc40028bb5993c024241a87bd
Gerrit-PatchSet: 5
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Daniel Friesen <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Kaldari <[email protected]>
Gerrit-Reviewer: MZMcBride <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: TheDJ <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to