projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eccc5e5
)
Explode the string if it comes from the Keywords field - otherwise
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Thu, 13 Aug 2009 20:27:31 +0000
(16:27 -0400)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Thu, 13 Aug 2009 20:27:31 +0000
(16:27 -0400)
keep it as is.
ansel/lib/Image.php
patch
|
blob
|
history
diff --git
a/ansel/lib/Image.php
b/ansel/lib/Image.php
index
e61db1b
..
3b00ad4
100644
(file)
--- a/
ansel/lib/Image.php
+++ b/
ansel/lib/Image.php
@@
-538,6
+538,8
@@
class Ansel_Image
if (substr($field, 0, 8) == 'DateTime') {
$d = new Horde_Date(strtotime($this->_exif[$field]));
$tags[] = $d->format("Y-m-d");
+ } elseif ($field == 'Keywords') {
+ $tags = array_merge($tags, explode(',', $this->_exif[$field]));
} else {
$tags[] = $this->_exif[$field];
}