aboutsummaryrefslogtreecommitdiffstats
path: root/includes/QueryPage.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/QueryPage.php')
-rw-r--r--includes/QueryPage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/QueryPage.php b/includes/QueryPage.php
index 6ffd11662326..43804cee26e8 100644
--- a/includes/QueryPage.php
+++ b/includes/QueryPage.php
@@ -37,7 +37,7 @@ class QueryPage {
function getOrderLimit( $offset, $limit ) {
return " ORDER BY value " .
($this->sortDescending() ? "DESC" : "")
- . " LIMIT {$offset}, {$limit}";
+ . wfLimitResult($limit,$offset);
}
# Is this query expensive (for some definition of expensive)? Then we