*Typo
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 6 Jul 2007 19:20:29 +0000 (19:20 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 6 Jul 2007 19:20:29 +0000 (19:20 +0000)
includes/Pager.php

index 1d9b162..0dc29e3 100644 (file)
@@ -170,14 +170,14 @@ abstract class IndexPager implements Pager {
         * @param boolean $descending Query direction, false for ascending, true for descending
         * @return ResultWrapper
         */
-       function reallyDoQuery( $offset, $limit, $ascending ) {
+       function reallyDoQuery( $offset, $limit, $descending ) {
                $fname = __METHOD__ . ' (' . get_class( $this ) . ')';
                $info = $this->getQueryInfo();
                $tables = $info['tables'];
                $fields = $info['fields'];
                $conds = isset( $info['conds'] ) ? $info['conds'] : array();
                $options = isset( $info['options'] ) ? $info['options'] : array();
-               if ( $ascending ) {
+               if ( $descending ) {
                        $options['ORDER BY'] = $this->mIndexField;
                        $operator = '>';
                } else {