From 228f097d954469673634ea47c08ccc9adddca7dd Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 10 May 2008 13:38:07 +0000 Subject: [PATCH] Pass in $join_conds --- includes/Pager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Pager.php b/includes/Pager.php index 9606860e3c..a63b97f398 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -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 ); } -- 2.20.1