r71999 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71998‎ | r71999 | r72000 >
Date:00:40, 31 August 2010
Author:reedy
Status:deferred
Tags:
Comment:
Fixup update, was using it as a string literal for the value, hence not updating
Modified paths:
  • /trunk/extensions/ArticleAssessmentPilot/api/ApiArticleAssessment.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleAssessmentPilot/api/ApiArticleAssessment.php
@@ -80,8 +80,8 @@
8181 $dbw->update(
8282 'article_assessment_pages',
8383 array(
84 - 'aap_total' => 'aap_total + ' . $updateAddition,
85 - 'aap_count' => 'aap_count + ' . ( $newRating ? 1 : 0 ),
 84+ 'aap_total = aap_total + ' . $updateAddition,
 85+ 'aap_count = aap_count + ' . ( $newRating ? 1 : 0 ),
8686 ),
8787 array(
8888 'aap_page_id' => $pageId,

Status & tagging log