]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #1043 tags retain their case
authorCash Costello <cash.costello@gmail.com>
Tue, 7 Feb 2012 12:25:49 +0000 (07:25 -0500)
committerCash Costello <cash.costello@gmail.com>
Tue, 7 Feb 2012 12:25:49 +0000 (07:25 -0500)
engine/lib/metadata.php

index 012c73ad921a1ab2c4cbb4d9931d79a86e6f9e84..34a36d86e1393f49d38abdf9b842fd620bdc78cd 100644 (file)
@@ -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;
        }