Changeset 1127


Ignore:
Timestamp:
Apr 5, 2006, 8:02:10 PM (18 years ago)
Author:
plg
Message:

typo fixed: forgotten a "$" on $tags_of array when calling set_tags_of.

modification: "." and ";" are also supported as IPTC keywords separator.

File:
1 edited

Legend:

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

    r1121 r1127  
    5151  if (isset($iptc['keywords']))
    5252  {
    53     // keywords separator is the comma
     53    // official keywords separator is the comma
     54    $iptc['keywords'] = preg_replace('/[.;]/', ',', $iptc['keywords']);
    5455    $iptc['keywords'] = preg_replace('/^,+|,+$/', '', $iptc['keywords']);
    5556  }
     
    181182    }
    182183
    183     $fields =
     184    mass_updates(
     185      IMAGES_TABLE,
    184186      array(
    185187        'primary' => array('id'),
    186188        'update'  => array_unique($update_fields)
    187         );
    188     echo '<pre>'; print_r($datas); echo '</pre>';
    189     mass_updates(IMAGES_TABLE, $fields, $datas);
    190   }
    191 
    192   set_tags_of(tags_of);
     189        ),
     190      $datas
     191      );
     192  }
     193
     194  set_tags_of($tags_of);
    193195}
    194196
Note: See TracChangeset for help on using the changeset viewer.