dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "objectcache: remove references to recently removed methods"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryCategoryInfo.php
diff --git
a/includes/api/ApiQueryCategoryInfo.php
b/includes/api/ApiQueryCategoryInfo.php
index
25e9b27
..
bb48290
100644
(file)
--- a/
includes/api/ApiQueryCategoryInfo.php
+++ b/
includes/api/ApiQueryCategoryInfo.php
@@
-1,9
+1,5
@@
<?php
/**
<?php
/**
- *
- *
- * Created on May 13, 2007
- *
* Copyright © 2006 Yuri Astrakhan "<Firstname><Lastname>@gmail.com"
*
* This program is free software; you can redistribute it and/or modify
* Copyright © 2006 Yuri Astrakhan "<Firstname><Lastname>@gmail.com"
*
* This program is free software; you can redistribute it and/or modify
@@
-82,10
+78,10
@@
class ApiQueryCategoryInfo extends ApiQueryBase {
$catids = array_flip( $cattitles );
foreach ( $res as $row ) {
$vals = [];
$catids = array_flip( $cattitles );
foreach ( $res as $row ) {
$vals = [];
- $vals['size'] =
intval( $row->cat_pages )
;
+ $vals['size'] =
(int)$row->cat_pages
;
$vals['pages'] = $row->cat_pages - $row->cat_subcats - $row->cat_files;
$vals['pages'] = $row->cat_pages - $row->cat_subcats - $row->cat_files;
- $vals['files'] =
intval( $row->cat_files )
;
- $vals['subcats'] =
intval( $row->cat_subcats )
;
+ $vals['files'] =
(int)$row->cat_files
;
+ $vals['subcats'] =
(int)$row->cat_subcats
;
$vals['hidden'] = (bool)$row->cat_hidden;
$fit = $this->addPageSubItems( $catids[$row->cat_title], $vals );
if ( !$fit ) {
$vals['hidden'] = (bool)$row->cat_hidden;
$fit = $this->addPageSubItems( $catids[$row->cat_title], $vals );
if ( !$fit ) {