mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
typo fixed: forgotten a "$" on $tags_of array when calling set_tags_of.
modification: "." and ";" are also supported as IPTC keywords separator. git-svn-id: http://piwigo.org/svn/trunk@1127 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -50,7 +50,8 @@ function get_sync_iptc_data($file)
|
||||
|
||||
if (isset($iptc['keywords']))
|
||||
{
|
||||
// keywords separator is the comma
|
||||
// official keywords separator is the comma
|
||||
$iptc['keywords'] = preg_replace('/[.;]/', ',', $iptc['keywords']);
|
||||
$iptc['keywords'] = preg_replace('/^,+|,+$/', '', $iptc['keywords']);
|
||||
}
|
||||
|
||||
@@ -180,16 +181,17 @@ function update_metadata($files)
|
||||
);
|
||||
}
|
||||
|
||||
$fields =
|
||||
mass_updates(
|
||||
IMAGES_TABLE,
|
||||
array(
|
||||
'primary' => array('id'),
|
||||
'update' => array_unique($update_fields)
|
||||
);
|
||||
echo '<pre>'; print_r($datas); echo '</pre>';
|
||||
mass_updates(IMAGES_TABLE, $fields, $datas);
|
||||
),
|
||||
$datas
|
||||
);
|
||||
}
|
||||
|
||||
set_tags_of(tags_of);
|
||||
set_tags_of($tags_of);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user