Index: trunk/phase3/includes/SpecialContributions.php |
— | — | @@ -79,7 +79,7 @@ |
80 | 80 | |
81 | 81 | function getPreviousOffsetForPaging() { |
82 | 82 | list( $index, $usercond ) = $this->getUserCond(); |
83 | | - $nscond = $this->getNamespace_cond(); |
| 83 | + $nscond = $this->getNamespaceCond(); |
84 | 84 | |
85 | 85 | $use_index = $this->dbr->useIndexClause( $index ); |
86 | 86 | extract( $this->dbr->tableNames( 'page', 'revision' ) ); |
Index: trunk/phase3/includes/Title.php |
— | — | @@ -2152,11 +2152,11 @@ |
2153 | 2153 | /** |
2154 | 2154 | * Get the revision ID of the previous revision |
2155 | 2155 | * |
2156 | | - * @param integer $revId Revision ID. Get the revision that was before this one. |
2157 | | - * @param string $timestamp The timestamp of the current revision, if known |
| 2156 | + * @param integer $revision Revision ID. Get the revision that was before this one. |
2158 | 2157 | * @return interger $oldrevision|false |
2159 | 2158 | */ |
2160 | | - function getPreviousRevisionID( $revId, $timestamp = false ) { |
| 2159 | + function getPreviousRevisionID( $revision ) { |
| 2160 | + $dbr =& wfGetDB( DB_SLAVE ); |
2161 | 2161 | return $dbr->selectField( 'revision', 'rev_id', |
2162 | 2162 | 'rev_page=' . intval( $this->getArticleId() ) . |
2163 | 2163 | ' AND rev_id<' . intval( $revision ) . ' ORDER BY rev_id DESC' ); |