From ad871685be342763a32a22fcd5e0ce71a803c204 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 10 Aug 2004 13:58:55 +0000 Subject: [PATCH] wfLimitResult() -> Database::limitResult() --- includes/PageHistory.php | 2 +- includes/SpecialAllpages.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 13c1b444d6..eb65406180 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -64,7 +64,7 @@ class PageHistory { "FROM $oldtable $use_index " . "WHERE old_namespace={$namespace} AND " . "old_title='" . $db->strencode( $this->mTitle->getDBkey() ) . "' " . - "ORDER BY inverse_timestamp".wfLimitResult($limitplus,$rawoffset); + "ORDER BY inverse_timestamp".$db->limitResult($limitplus,$rawoffset); $res = $db->query( $sql, $fname ); $revs = $db->numRows( $res ); diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index 32dcb6e833..054385e122 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -46,7 +46,7 @@ function indexShowToplevel() # There's got to be a cleaner way to do this! for( $i = 1; $i < $sections; $i++ ) { $from = $i * $indexMaxperpage; - $sql = "SELECT cur_title $fromwhere $order ".wfLimitResult(2,$from); + $sql = "SELECT cur_title $fromwhere $order ".$dbr->limitResult(2,$from); $res = $dbr->query( $sql, $fname ); $s = $dbr->fetchObject( $res ); -- 2.20.1