aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-02-07 07:25:49 -0500
committerCash Costello <cash.costello@gmail.com>2012-02-07 07:25:49 -0500
commitfd390176450f8ce26dd36a144f5dcc997766e1d9 (patch)
treeaf42925924150361087d9abe8da716f1e39c0b02
parentfc9e6c0ce5aa5e1c6ffec852b2033acd04943c60 (diff)
downloadelgg-fd390176450f8ce26dd36a144f5dcc997766e1d9.tar.gz
elgg-fd390176450f8ce26dd36a144f5dcc997766e1d9.tar.bz2
Fixes #1043 tags retain their case
-rw-r--r--engine/lib/metadata.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index 012c73ad9..34a36d86e 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -746,7 +746,7 @@ function export_metadata_plugin_hook($hook, $entity_type, $returnvalue, $params)
/**
* Takes in a comma-separated string and returns an array of tags
- * which have been trimmed and set to lower case
+ * which have been trimmed
*
* @param string $string Comma-separated tag string
*
@@ -755,12 +755,7 @@ function export_metadata_plugin_hook($hook, $entity_type, $returnvalue, $params)
function string_to_tag_array($string) {
if (is_string($string)) {
$ar = explode(",", $string);
- // trim blank spaces
$ar = array_map('trim', $ar);
- // make lower case : [Marcus Povey 20090605 - Using mb wrapper function
- // using UTF8 safe function where available]
- $ar = array_map('elgg_strtolower', $ar);
- // Remove null values
$ar = array_filter($ar, 'is_not_null');
return $ar;
}