r105955 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105954‎ | r105955 | r105956 >
Date:23:22, 12 December 2011
Author:yonishostak
Status:ok
Tags:
Comment:
AFTv5: second attempt to remove double preference setting for AFTv4/5
Modified paths:
  • /trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.hooks.php
@@ -268,8 +268,8 @@
269269 */
270270 public static function getPreferences( $user, &$preferences ) {
271271 // need to check for existing key, if deployed simultaneously with AFTv4
272 - if( !array_key_exists( 'articlefeedbackv5-disable', $preferences ) ) {
273 - $preferences['articlefeedbackv5-disable'] = array(
 272+ if( !array_key_exists( 'articlefeedback-disable', $preferences ) ) {
 273+ $preferences['articlefeedback-disable'] = array(
274274 'type' => 'check',
275275 'section' => 'rendering/advancedrendering',
276276 'label-message' => 'articlefeedbackv5-disable-preference',

Status & tagging log