diff options
author | plegall <plg@piwigo.org> | 2016-02-23 15:35:49 +0100 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2016-02-23 15:35:49 +0100 |
commit | e936d291ebd2ffbffd6eabe33b8e26c979171900 (patch) | |
tree | c9bcba0391cc897da7995192282169ee9da0a56e | |
parent | be671c140108be5c1861e5969efdf9bad597968e (diff) |
feature #321, pwg.categories.getList returns status
-rw-r--r-- | include/ws_functions.inc.php | 4 | ||||
-rw-r--r-- | include/ws_functions/pwg.categories.php | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index c36efec69..8834ac834 100644 --- a/include/ws_functions.inc.php +++ b/include/ws_functions.inc.php @@ -193,7 +193,7 @@ function ws_std_get_image_xml_attributes() function ws_std_get_category_xml_attributes() { return array( - 'id', 'url', 'nb_images', 'total_nb_images', 'nb_categories', 'date_last', 'max_date_last', + 'id', 'url', 'nb_images', 'total_nb_images', 'nb_categories', 'date_last', 'max_date_last', 'status', ); } @@ -235,4 +235,4 @@ function categories_flatlist_to_tree($categories) return $tree; } -?>
\ No newline at end of file +?> diff --git a/include/ws_functions/pwg.categories.php b/include/ws_functions/pwg.categories.php index f55a7a773..9c337f7c2 100644 --- a/include/ws_functions/pwg.categories.php +++ b/include/ws_functions/pwg.categories.php @@ -231,7 +231,7 @@ function ws_categories_getList($params, &$service) $query = ' SELECT - id, name, comment, permalink, + id, name, comment, permalink, status, uppercats, global_rank, id_uppercat, nb_images, count_images AS total_nb_images, representative_picture_id, user_representative_picture_id, count_images, count_categories, @@ -494,7 +494,7 @@ SELECT category_id, COUNT(*) AS counter $nb_images_of = query2array($query, 'category_id', 'counter'); $query = ' -SELECT id, name, comment, uppercats, global_rank, dir +SELECT id, name, comment, uppercats, global_rank, dir, status FROM '. CATEGORIES_TABLE .' ;'; $result = pwg_query($query); @@ -534,7 +534,7 @@ SELECT id, name, comment, uppercats, global_rank, dir 'categories' => new PwgNamedArray( $cats, 'category', - array('id', 'nb_images', 'name', 'uppercats', 'global_rank') + array('id', 'nb_images', 'name', 'uppercats', 'global_rank', 'status') ) ); } |