r83560 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83559‎ | r83560 | r83561 >
Date:00:43, 9 March 2011
Author:tparscal
Status:ok
Tags:
Comment:
* Added experimental features preference
* Made section edit links conditional on experimental features
Modified paths:
  • /trunk/extensions/Vector/Vector.hooks.php (modified) (history)
  • /trunk/extensions/Vector/Vector.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Vector/Vector.i18n.php
@@ -21,6 +21,7 @@
2222 'vector-editwarning-preference' => 'Warn me when I leave an edit page with unsaved changes',
2323 'vector-simplesearch-search' => 'Search',
2424 'vector-simplesearch-containing' => 'containing...',
 25+ 'vector-noexperiments-preference' => 'Exclude me from feature experiments',
2526 );
2627
2728 /** Message documentation (Message documentation)
Index: trunk/extensions/Vector/Vector.hooks.php
@@ -58,11 +58,23 @@
5959 'wgVectorSectionEditLinksBucketTest',
6060 'wgVectorSectionEditLinksLotteryOdds',
6161 ),
 62+ 'requirements' => array(
 63+ 'vector-noexperiments' => false,
 64+ ),
6265 ),
6366 'simplesearch' => array(
6467 'requirements' => array( 'vector-simplesearch' => true, 'disablesuggest' => false ),
6568 'modules' => array( 'ext.vector.simpleSearch' ),
6669 ),
 70+ 'experiments' => array(
 71+ 'preferences' => array(
 72+ 'vector-noexperiments' => array(
 73+ 'type' => 'toggle',
 74+ 'label-message' => 'vector-noexperiments-preference',
 75+ 'section' => 'rendering/advancedrendering',
 76+ ),
 77+ ),
 78+ ),
6779 );
6880
6981 /* Protected Static Methods */

Follow-up revisions

RevisionCommit summaryAuthorDate
r836001.17wmf1: Merge Vector edit section links module plus required ClickTracking ...catrope18:55, 9 March 2011

Status & tagging log