r101629 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r101628
|
r101629
|
r101630
>
Date:
15:15, 2 November 2011
Author:
johnduhart
Status:
resolved (
Comments
)
Tags:
Comment:
Followup
r100305
, don't try to do a batch query for an empty result (which would cause
bug 32134
)
Modified paths:
/trunk/phase3/includes/actions/HistoryAction.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/actions/HistoryAction.php
—
—
@@ -385,6 +385,11 @@
386
386
}
387
387
388
388
function doBatchLookups() {
389
+ # No results? Nothing to batch
390
+ if ( !$this->mResult->numRows() ) {
391
+ return;
392
+ }
393
+
389
394
# Do a link batch query
390
395
$this->mResult->seek( 0 );
391
396
$batch = new LinkBatch();
Follow-up revisions
Revision
Commit summary
Author
Date
r101640
FU
r101629
, made Pager only call doBatchLookups() if there are rows
aaron
17:33, 2 November 2011
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r100305
* Added a proper Pager::doBatchLookups() function...
aaron
00:43, 20 October 2011
Comments
#
Comment by
Aaron Schulz
(
talk
|
contribs
)
17:26, 2 November 2011
Pager should be refactored to only call doBatchLookups() if there are rows.
#
Comment by
Aaron Schulz
(
talk
|
contribs
)
17:33, 2 November 2011
Done.
Status & tagging log
17:33, 2 November 2011
Aaron Schulz
(
talk
|
contribs
)
changed the
status
of r101629
[
removed:
new
added:
resolved]