r108530 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108529‎ | r108530 | r108531 >
Date:18:28, 10 January 2012
Author:rsterbin
Status:ok
Tags:
Comment:
Followup to r107914: added comment to explain how the link ID works
Modified paths:
  • /trunk/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5.php
@@ -514,7 +514,8 @@
515515 $revId = $title->getLatestRevID();
516516 }
517517
518 - // Get the link ID
 518+ // Find the link ID using the order of the link buckets ('-' = 0, 'A' = 1,
 519+ // 'B' = 2, etc.)
519520 $links = array_flip( array_keys( $wgArticleFeedbackv5LinkBuckets['buckets'] ) );
520521 $linkId = isset($links[$linkName]) ? $links[$linkName] : 0;
521522

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107914Links options are now referenced by letter rather than number, and link option A...rsterbin18:05, 3 January 2012

Status & tagging log