aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/create_listing_file.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/create_listing_file.php b/tools/create_listing_file.php
index 112b4ff14..377dba071 100644
--- a/tools/create_listing_file.php
+++ b/tools/create_listing_file.php
@@ -165,7 +165,15 @@ function get_sync_iptc_data($file)
$iptc['keywords'] = preg_replace('/[.;]/', ',', $iptc['keywords']);
$iptc['keywords'] = preg_replace('/^,+|,+$/', '', $iptc['keywords']);
}
-
+ $iptc['keywords'] = implode(
+ ',',
+ array_unique(
+ explode(
+ ',',
+ $iptc['keywords']
+ )
+ )
+ );
return $iptc;
}