summaryrefslogtreecommitdiff
path: root/functions.inc.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-18 22:11:03 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-18 22:11:03 +0000
commit3cae6838170fc79f7d367bcb017b67e91620c54c (patch)
tree17c9a3b1edbe3abf74ca3614c01d87138f0f3f52 /functions.inc.php
parente0a61f1fc5e74cbbaf7c710b57bc7a2dca4d05c2 (diff)
downloadsemanticscuttle-3cae6838170fc79f7d367bcb017b67e91620c54c.tar.gz
semanticscuttle-3cae6838170fc79f7d367bcb017b67e91620c54c.tar.bz2
Interface fix: allows to remove a tag from selection in subtitle bar thanks to a *
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@207 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'functions.inc.php')
-rw-r--r--functions.inc.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/functions.inc.php b/functions.inc.php
index 4dd73f3..3ee0e9b 100644
--- a/functions.inc.php
+++ b/functions.inc.php
@@ -115,6 +115,20 @@ function checkUrl($url, $checkOnline = true) {
}
}
+/* Returns a concatenated String
+ * including all the tags from the array $arrayTags (excepted of the $exceptedTag)
+ * separated by the $separator.
+ * */
+function aggregateTags($arrayTags, $separator = ' + ', $exceptedTag = '') {
+ $output = '';
+
+ for($i = 0; $i<count($arrayTags); $i++) {
+ if($arrayTags[$i] != $exceptedTag) {
+ $output.= $arrayTags[$i] . $separator;
+ }
+ }
+ return substr($output, 0, strlen($output) - strlen($separator) );
+}
function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '', $db = NULL) {
if(defined('HAS_DIED'))