From f6825cfb33d16796951ce29f28e2e99f61e3d903 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 9 Feb 2012 21:11:34 +0000 Subject: - remove square/thumb from choices on picture - fix content margin on password register - purge derivative cache by type of derivative - session saved infos/messages are not given to the page on html redirections - shorter/faster code in functions_xxx git-svn-id: http://piwigo.org/svn/trunk@13074 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_category.inc.php | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'include/functions_category.inc.php') diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index c37a9c266..5d66e75c5 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -485,33 +485,5 @@ SELECT image_id return $image_id; } -/** - * create a tree from a flat list of categories, no recursivity for high speed - */ -function categories_flatlist_to_tree($categories) -{ - $tree = array(); - $key_of_cat = array(); - - foreach ($categories as $key => &$node) - { - $key_of_cat[$node['id']] = $key; - - if (!isset($node['id_uppercat'])) - { - $tree[$key] = &$node; - } - else - { - if (!isset($categories[ $key_of_cat[ $node['id_uppercat'] ] ]['sub_categories'])) - { - $categories[ $key_of_cat[ $node['id_uppercat'] ] ]['sub_categories'] = array(); - } - $categories[ $key_of_cat[ $node['id_uppercat'] ] ]['sub_categories'][$key] = &$node; - } - } - - return $tree; -} ?> \ No newline at end of file -- cgit v1.2.3