summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-01-27 18:28:37 +0300
committerAndrew Dolgov <[email protected]>2010-01-27 18:28:37 +0300
commit4d50f419ee5039b91fd542e7719b1b5c9b0f5015 (patch)
tree7380bb538b4ebabe9a134dc3e33204b02a2d6e8a /functions.php
parent2712bcea09a5db4477fefbf939324d24cb72d838 (diff)
fix multiple TAG filters not being applied properly
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/functions.php b/functions.php
index 6a18ffbf3..ec0f484ad 100644
--- a/functions.php
+++ b/functions.php
@@ -1371,15 +1371,15 @@
# check for manual tags
- $tag_filter = find_article_filter($article_filters, "tag");
+ foreach ($article_filters as $f) {
+ if ($f[0] == "tag") {
- if ($tag_filter) {
+ $manual_tags = trim_array(split(",", $f[1]));
- $manual_tags = trim_array(split(",", $tag_filter[1]));
-
- foreach ($manual_tags as $tag) {
- if (tag_is_valid($tag)) {
- array_push($entry_tags, $tag);
+ foreach ($manual_tags as $tag) {
+ if (tag_is_valid($tag)) {
+ array_push($entry_tags, $tag);
+ }
}
}
}