r103337 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103336‎ | r103337 | r103338 >
Date:16:38, 16 November 2011
Author:gregchiasson
Status:deferred
Tags:
Comment:
Update the field names everywhere.
Modified paths:
  • /trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.hooks.php
@@ -178,13 +178,13 @@
179179 $fields = ApiArticleFeedbackv5Utils::getFields();
180180 $prefix = 'articlefeedbackv5-bucket5-';
181181 foreach( $fields as $field ) {
182 - $resources['messages'][] = $prefix . $field->aaf_name . '-label';
183 - $resources['messages'][] = $prefix . $field->aaf_name . '-tip';
184 - $resources['messages'][] = $prefix . $field->aaf_name . '-tooltip-1';
185 - $resources['messages'][] = $prefix . $field->aaf_name . '-tooltip-2';
186 - $resources['messages'][] = $prefix . $field->aaf_name . '-tooltip-3';
187 - $resources['messages'][] = $prefix . $field->aaf_name . '-tooltip-4';
188 - $resources['messages'][] = $prefix . $field->aaf_name . '-tooltip-5';
 182+ $resources['messages'][] = $prefix . $field->afi_name . '-label';
 183+ $resources['messages'][] = $prefix . $field->afi_name . '-tip';
 184+ $resources['messages'][] = $prefix . $field->afi_name . '-tooltip-1';
 185+ $resources['messages'][] = $prefix . $field->afi_name . '-tooltip-2';
 186+ $resources['messages'][] = $prefix . $field->afi_name . '-tooltip-3';
 187+ $resources['messages'][] = $prefix . $field->afi_name . '-tooltip-4';
 188+ $resources['messages'][] = $prefix . $field->afi_name . '-tooltip-5';
189189 }
190190 }
191191 $resourceLoader->register(
@@ -221,8 +221,8 @@
222222
223223 $fields = ApiArticleFeedbackv5Utils::getFields();
224224 foreach( $fields as $field ) {
225 - $vars['wgArticleFeedbackv5RatingTypes'][] = $field->aaf_name;
226 - $vars['wgArticleFeedbackv5RatingTypesFlipped'][$field->aaf_name] = $field->aaf_id;
 225+ $vars['wgArticleFeedbackv5RatingTypes'][] = $field->afi_name;
 226+ $vars['wgArticleFeedbackv5RatingTypesFlipped'][$field->afi_name] = $field->afi_id;
227227 }
228228 return true;
229229 }

Status & tagging log