Changeset 28089


Ignore:
Timestamp:
Apr 5, 2014, 9:33:48 PM (10 years ago)
Author:
rvelices
Message:

when displaying iptc metadata, add a space between iptc keywords (if there are many, the html line is unbreakable)

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_metadata.inc.php

    r26461 r28089  
    3434 * @return array
    3535 */
    36 function get_iptc_data($filename, $map)
     36function get_iptc_data($filename, $map, $array_sep=',')
    3737{
    3838  global $conf;
     
    5858          if ($iptc_key == '2#025')
    5959          {
    60             $value = implode(',',
     60            $value = implode($array_sep,
    6161                             array_map('clean_iptc_value',$iptc[$iptc_key]));
    6262          }
  • trunk/include/picture_metadata.inc.php

    r26461 r28089  
    8080if ($conf['show_iptc'])
    8181{
    82   $iptc = get_iptc_data($picture['current']['src_image']->get_path(), $conf['show_iptc_mapping']);
     82  $iptc = get_iptc_data($picture['current']['src_image']->get_path(), $conf['show_iptc_mapping'], ', ');
    8383
    8484  if (count($iptc) > 0)
Note: See TracChangeset for help on using the changeset viewer.