r72624 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r72623
|
r72624
|
r72625
>
Date:
01:21, 9 September 2010
Author:
reedy
Status:
ok
Tags:
Comment:
Followup
r72623
, need to actually change how we're doing the comparison of "number of rows", so switching to using returned value, use select and numRows
Modified paths:
/trunk/extensions/ArticleAssessmentPilot/api/ApiQueryArticleAssessment.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/ArticleAssessmentPilot/api/ApiQueryArticleAssessment.php
—
—
@@ -100,7 +100,7 @@
101
101
102
102
global $wgArticleAssessmentStaleCount;
103
103
104
- $res = $dbr->selectField(
104
+ $res = $dbr->select(
105
105
'revision',
106
106
'rev_id',
107
107
array(
—
—
@@ -111,7 +111,7 @@
112
112
array ( 'LIMIT', $wgArticleAssessmentStaleCount + 1 )
113
113
);
114
114
115
- if ( $res && (int)$res > $wgArticleAssessmentStaleCount ) {
115
+ if ( $res && $dbr->numRows( $res ) > $wgArticleAssessmentStaleCount ) {
116
116
//it's stale!
117
117
$ratings[$params['pageid']]['stale'] = intval( $res );
118
118
}
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r72623
Followup
r72532
, actually follow what the CR notes suggested, use limit fetch...
reedy
01:15, 9 September 2010
Status & tagging log
18:39, 13 September 2010
Catrope
(
talk
|
contribs
)
changed the
status
of r72624
[
removed:
new
added:
ok]