Index: trunk/extensions/Vector/Vector.i18n.php |
— | — | @@ -21,6 +21,7 @@ |
22 | 22 | 'vector-editwarning-preference' => 'Warn me when I leave an edit page with unsaved changes', |
23 | 23 | 'vector-simplesearch-search' => 'Search', |
24 | 24 | 'vector-simplesearch-containing' => 'containing...', |
| 25 | + 'vector-noexperiments-preference' => 'Exclude me from feature experiments', |
25 | 26 | ); |
26 | 27 | |
27 | 28 | /** Message documentation (Message documentation) |
Index: trunk/extensions/Vector/Vector.hooks.php |
— | — | @@ -58,11 +58,23 @@ |
59 | 59 | 'wgVectorSectionEditLinksBucketTest', |
60 | 60 | 'wgVectorSectionEditLinksLotteryOdds', |
61 | 61 | ), |
| 62 | + 'requirements' => array( |
| 63 | + 'vector-noexperiments' => false, |
| 64 | + ), |
62 | 65 | ), |
63 | 66 | 'simplesearch' => array( |
64 | 67 | 'requirements' => array( 'vector-simplesearch' => true, 'disablesuggest' => false ), |
65 | 68 | 'modules' => array( 'ext.vector.simpleSearch' ), |
66 | 69 | ), |
| 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 | + ), |
67 | 79 | ); |
68 | 80 | |
69 | 81 | /* Protected Static Methods */ |