summaryrefslogtreecommitdiff
path: root/lib/functions.php
diff options
context:
space:
mode:
authorNicolas BERNSTEIN <alexis211@gmail.com>2011-09-18 12:29:55 +0200
committerNicolas BERNSTEIN <alexis211@gmail.com>2011-09-18 12:29:55 +0200
commit738639355db0dd88682385873c047b3f96969622 (patch)
tree5d78ec2a958e007c09a5b9687dbfceead599a6f1 /lib/functions.php
parenta565e649898c629874ef812a13806b1c384f68e4 (diff)
downloadBits-738639355db0dd88682385873c047b3f96969622.tar.gz
Bits-738639355db0dd88682385873c047b3f96969622.zip
Bugfixes.
Diffstat (limited to 'lib/functions.php')
-rw-r--r--lib/functions.php19
1 files changed, 5 insertions, 14 deletions
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 (