mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
when displaying iptc metadata, add a space between iptc keywords (if there are many, the html line is unbreakable)
git-svn-id: http://piwigo.org/svn/trunk@28089 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
* @param array $map
|
||||
* @return array
|
||||
*/
|
||||
function get_iptc_data($filename, $map)
|
||||
function get_iptc_data($filename, $map, $array_sep=',')
|
||||
{
|
||||
global $conf;
|
||||
|
||||
@@ -57,7 +57,7 @@ function get_iptc_data($filename, $map)
|
||||
{
|
||||
if ($iptc_key == '2#025')
|
||||
{
|
||||
$value = implode(',',
|
||||
$value = implode($array_sep,
|
||||
array_map('clean_iptc_value',$iptc[$iptc_key]));
|
||||
}
|
||||
else
|
||||
|
||||
@@ -79,7 +79,7 @@ if (($conf['show_exif']) and (function_exists('read_exif_data')))
|
||||
|
||||
if ($conf['show_iptc'])
|
||||
{
|
||||
$iptc = get_iptc_data($picture['current']['src_image']->get_path(), $conf['show_iptc_mapping']);
|
||||
$iptc = get_iptc_data($picture['current']['src_image']->get_path(), $conf['show_iptc_mapping'], ', ');
|
||||
|
||||
if (count($iptc) > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user