summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-05-17 08:47:00 +0100
committerAndrew Dolgov <[email protected]>2007-05-17 08:47:00 +0100
commit8fc70781f85ac443f287f9541c235dab01c5b607 (patch)
tree69698cbd71239e9091ee48011aa6f91276589db5 /functions.php
parent1eb19b6adc86221c184345d7c0870d1ff0ba5138 (diff)
do not auto-apply tags specified in BLACKLISTED_TAGS
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 050780dd4..3087b9b6a 100644
--- a/functions.php
+++ b/functions.php
@@ -875,9 +875,12 @@
}
}
+ $boring_tags = trim_array(split(",", get_pref($link,
+ 'BLACKLISTED_TAGS', $owner_uid, '')));
+
if ($additional_tags && is_array($additional_tags)) {
foreach ($additional_tags as $tag) {
- if (tag_is_valid($tag)) {
+ if (tag_is_valid($tag) && !array_key_exists($tag, $boring_tags)) {
array_push($entry_tags, $tag);
}
}