bugs!
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 23 Jun 2006 11:09:40 +0000 (11:09 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 23 Jun 2006 11:09:40 +0000 (11:09 +0000)
includes/SpecialContributions.php
includes/Title.php

index c01b40d..8477b6b 100644 (file)
@@ -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' ) );
index ed46c4a..6c29bc6 100644 (file)
@@ -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' );