From 708697ab8c2c574069f1aae5fd7b59a50bdea6d0 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 23 Jun 2006 11:09:40 +0000 Subject: [PATCH] bugs! --- includes/SpecialContributions.php | 2 +- includes/Title.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index c01b40d011..8477b6bcfc 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -79,7 +79,7 @@ class ContribsFinder { function getPreviousOffsetForPaging() { list( $index, $usercond ) = $this->getUserCond(); - $nscond = $this->getNamespace_cond(); + $nscond = $this->getNamespaceCond(); $use_index = $this->dbr->useIndexClause( $index ); extract( $this->dbr->tableNames( 'page', 'revision' ) ); diff --git a/includes/Title.php b/includes/Title.php index ed46c4a7db..6c29bc6695 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2152,11 +2152,11 @@ class Title { /** * Get the revision ID of the previous revision * - * @param integer $revId Revision ID. Get the revision that was before this one. - * @param string $timestamp The timestamp of the current revision, if known + * @param integer $revision Revision ID. Get the revision that was before this one. * @return interger $oldrevision|false */ - function getPreviousRevisionID( $revId, $timestamp = false ) { + function getPreviousRevisionID( $revision ) { + $dbr =& wfGetDB( DB_SLAVE ); return $dbr->selectField( 'revision', 'rev_id', 'rev_page=' . intval( $this->getArticleId() ) . ' AND rev_id<' . intval( $revision ) . ' ORDER BY rev_id DESC' ); -- 2.20.1