Index: trunk/phase3/includes/Pager.php |
— | — | @@ -170,14 +170,14 @@ |
171 | 171 | * @param boolean $descending Query direction, false for ascending, true for descending |
172 | 172 | * @return ResultWrapper |
173 | 173 | */ |
174 | | - function reallyDoQuery( $offset, $limit, $ascending ) { |
| 174 | + function reallyDoQuery( $offset, $limit, $descending ) { |
175 | 175 | $fname = __METHOD__ . ' (' . get_class( $this ) . ')'; |
176 | 176 | $info = $this->getQueryInfo(); |
177 | 177 | $tables = $info['tables']; |
178 | 178 | $fields = $info['fields']; |
179 | 179 | $conds = isset( $info['conds'] ) ? $info['conds'] : array(); |
180 | 180 | $options = isset( $info['options'] ) ? $info['options'] : array(); |
181 | | - if ( $ascending ) { |
| 181 | + if ( $descending ) { |
182 | 182 | $options['ORDER BY'] = $this->mIndexField; |
183 | 183 | $operator = '>'; |
184 | 184 | } else { |