X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllCategories.php;h=3f5c6ee7cec4cac5c3154423e831caf2e3717f23;hb=7844c9a0581ec68ab7213f81d228c279ed167542;hp=496a0eb8d429fcb85c35a50a80501616e193691c;hpb=ec493cc7508e4741e370cbcd10b59ba636c13113;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index 496a0eb8d4..3f5c6ee7ce 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -76,7 +76,7 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { if ( $dir == 'newer' ) { $this->addWhereRange( 'cat_pages', 'newer', $min, $max ); } else { - $this->addWhereRange( 'cat_pages', 'older', $max, $min); + $this->addWhereRange( 'cat_pages', 'older', $max, $min ); } if ( isset( $params['prefix'] ) ) { @@ -121,7 +121,7 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { $pages[] = $titleObj; } else { $item = array(); - $result->setContent( $item, $titleObj->getText() ); + ApiResult::setContent( $item, $titleObj->getText() ); if ( isset( $prop['size'] ) ) { $item['size'] = intval( $row->cat_pages ); $item['pages'] = $row->cat_pages - $row->cat_subcats - $row->cat_files;