From 738639355db0dd88682385873c047b3f96969622 Mon Sep 17 00:00:00 2001 From: Nicolas BERNSTEIN Date: Sun, 18 Sep 2011 12:29:55 +0200 Subject: Bugfixes. --- lib/functions.php | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'lib/functions.php') diff --git a/lib/functions.php b/lib/functions.php index 6190818..0aadba0 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -89,22 +89,13 @@ function filter_html($name) { return implode(", ", $r); } -function filters_html() { - global $filters; - $r = array(); - foreach ($filters as $k => $filter) { - $r[$k] = filter_html($k); - } - return $r; -} - function filters_html_full() { - global $filters_names; - $r = array(); - foreach (filters_html() as $f => $h) { - $r[] = $f . " (" . $h . ")"; + global $filters; + $ra = array(); + foreach (array_keys($filters) as $k) { + $ra[] = $k . " (" . filter_html($k) . ")"; } - return implode(", ", $r); + return implode(", ", $ra); } $ord_ways = array ( -- cgit v1.2.3