From f932ee79df9ad48a16822dc12518b234836ce926 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 17 May 2014 12:11:47 +0000 Subject: feature 3077 : use Selectize with AJAX load/cache on picture_modify git-svn-id: http://piwigo.org/svn/trunk@28494 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_functions/pwg.categories.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/ws_functions') diff --git a/include/ws_functions/pwg.categories.php b/include/ws_functions/pwg.categories.php index 47dbc4735..da2706ab2 100644 --- a/include/ws_functions/pwg.categories.php +++ b/include/ws_functions/pwg.categories.php @@ -486,7 +486,7 @@ SELECT category_id, COUNT(*) AS counter FROM '. IMAGE_CATEGORY_TABLE .' GROUP BY category_id ;'; - $nb_images_of = simple_hash_from_query($query, 'category_id', 'counter'); + $nb_images_of = query2array($query, 'category_id', 'counter'); $query = ' SELECT id, name, comment, uppercats, global_rank @@ -507,6 +507,12 @@ SELECT id, name, comment, uppercats, global_rank 'ws_categories_getAdminList' ) ); + $row['fullname'] = strip_tags( + get_cat_display_name_cache( + $row['uppercats'], + null + ) + ); $row['comment'] = strip_tags( trigger_event( 'render_category_description', -- cgit v1.2.3