From f302f65cd7b1028bcf910a8b3a330c38f21f611e Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Tue, 26 Aug 2014 16:07:59 +0200 Subject: [PATCH] Use IPTC Title when Headline not available (#216) --- php/modules/Photo.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php/modules/Photo.php b/php/modules/Photo.php index c6afb3b..ad706c3 100755 --- a/php/modules/Photo.php +++ b/php/modules/Photo.php @@ -528,6 +528,9 @@ class Photo extends Module { $temp = @$iptcInfo['2#120'][0]; if (isset($temp)&&strlen($temp)>0) $return['description'] = $temp; + $temp = @$iptcInfo['2#005'][0]; + if (isset($temp)&&strlen($temp)>0&&$return['title']==='') $return['title'] = $temp; + } }