Pass in $join_conds
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 10 May 2008 13:38:07 +0000 (13:38 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 10 May 2008 13:38:07 +0000 (13:38 +0000)
includes/Pager.php

index 9606860..a63b97f 100644 (file)
@@ -215,6 +215,7 @@ abstract class IndexPager implements Pager {
                $fields = $info['fields'];
                $conds = isset( $info['conds'] ) ? $info['conds'] : array();
                $options = isset( $info['options'] ) ? $info['options'] : array();
+               $join_conds = isset( $info['join_conds'] ) ? $info['join_conds'] : array();
                if ( $descending ) {
                        $options['ORDER BY'] = $this->mIndexField;
                        $operator = '>';
@@ -226,7 +227,7 @@ abstract class IndexPager implements Pager {
                        $conds[] = $this->mIndexField . $operator . $this->mDb->addQuotes( $offset );
                }
                $options['LIMIT'] = intval( $limit );
-               $res = $this->mDb->select( $tables, $fields, $conds, $fname, $options );
+               $res = $this->mDb->select( $tables, $fields, $conds, $fname, $options, $join_conds );
                return new ResultWrapper( $this->mDb, $res );
        }