From c000b9ed60d13c1a40df39f4d5f16bbd5bfd92b0 Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 21 Apr 2006 00:04:11 +0000 Subject: merge r1228 from branch-1_6 into trunk bug 345: cannot browse categories (Club Internet modified web server provides PATH_INFO even if it is empty) fix 339: also added in create_listing_file.php git-svn-id: http://piwigo.org/svn/trunk@1229 68402e56-0260-453c-a942-63ccdbb3a9ee --- tools/create_listing_file.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tools') 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; } -- cgit v1.2.3