only sanitise when saving tags - when searching, '*' is important

This commit is contained in:
Shish 2013-08-04 18:21:52 +01:00
parent 8b22652aa0
commit e50d9c4dbb

View File

@ -462,6 +462,7 @@ class Image {
assert(is_array($tags));
$tags = array_map(array('Tag', 'sanitise'), $tags);
$tags = Tag::resolve_aliases($tags);
assert(is_array($tags));
@ -1070,7 +1071,6 @@ class Tag {
}
}
$new = array_map(array('Tag', 'sanitise'), $new);
$new = array_iunique($new); // remove any duplicate tags
return $new;
}