Yaron Koren has uploaded a new change for review.
https://gerrit.wikimedia.org/r/190818
Change subject: Fixed handling for "limit=0" - fix for 7e2b99a
......................................................................
Fixed handling for "limit=0" - fix for 7e2b99a
Change-Id: I2ef11129cdbe468d441d9819bfe5a43da3deab6f
---
M parserfunctions/CargoQuery.php
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Cargo
refs/changes/18/190818/1
diff --git a/parserfunctions/CargoQuery.php b/parserfunctions/CargoQuery.php
index c286673..110a561 100644
--- a/parserfunctions/CargoQuery.php
+++ b/parserfunctions/CargoQuery.php
@@ -102,9 +102,10 @@
// Finally, do the display.
$text = $queryDisplayer->displayQueryResults( $formatter,
$queryResults );
- // If there are no results, it's just an automatic message so
- // there's no need for special parsing.
- if ( count( $queryResults ) == 0 ) {
+ // If there are no results, and the limit was not set to 0,
+ // it's just an automatic message so there's no need for
+ // special parsing.
+ if ( count( $queryResults ) == 0 && $sqlQuery->mQueryLimit > 0
) {
return $text;
}
--
To view, visit https://gerrit.wikimedia.org/r/190818
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2ef11129cdbe468d441d9819bfe5a43da3deab6f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Cargo
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits