aboutsummaryrefslogtreecommitdiffstats
path: root/tools/create_listing_file.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-04-21 00:03:46 +0000
committerrvelices <rv-github@modusoptimus.com>2006-04-21 00:03:46 +0000
commitd637dbbe1d94f9e503bce3c0c5497accfa2728cd (patch)
treecbbbaa8e852d9843f70d83800a483a29b8759dfe /tools/create_listing_file.php
parentd766c69272ece6def7e72469999d5d4e762262da (diff)
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/branches/branch-1_6@1228 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'tools/create_listing_file.php')
-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;
}