From: Domas Mituzas Date: Fri, 20 Aug 2004 10:32:12 +0000 (+0000) Subject: remove bad functions: X-Git-Tag: 1.5.0alpha1~2291 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=95281cb81ec55da5472e0ce903e2922727e58bc1;p=lhc%2Fweb%2Fwiklou.git remove bad functions: wfLimitResult() - replaced by Database::limitResult() QueryPage::getOrderLimit() - replaced by getOrder() + Database::limitResult() --- diff --git a/includes/Database.php b/includes/Database.php index 04b21f66c4..6e8bfec1c8 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -1000,8 +1000,4 @@ function wfEmergencyAbort( &$conn, $error ) { wfErrorExit(); } -function wfLimitResult( $limit, $offset ) { - return " LIMIT ".(is_numeric($offset)?"{$offset},":"")."{$limit} "; -} - ?> diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 56ed2aa85d..ca5d371101 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -37,13 +37,6 @@ class QueryPage { return true; } - # Don't override this unless you're darn sure. - function getOrderLimit( $offset, $limit ) { - return ' ORDER BY value ' . - ($this->sortDescending() ? 'DESC' : '') - . wfLimitResult($limit,$offset); - } - function getOrder() { return ' ORDER BY value ' . ($this->sortDescending() ? 'DESC' : '');