Use IPTC Title when Headline not available (#216)
This commit is contained in:
parent
0387581005
commit
f302f65cd7
@ -528,6 +528,9 @@ class Photo extends Module {
|
|||||||
$temp = @$iptcInfo['2#120'][0];
|
$temp = @$iptcInfo['2#120'][0];
|
||||||
if (isset($temp)&&strlen($temp)>0) $return['description'] = $temp;
|
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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user