summaryrefslogtreecommitdiff
path: root/modules/g2_import/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-10 07:37:20 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-10 07:37:20 -0700
commitde39dcbce67f934085621ac7838980d42bfd1bb9 (patch)
tree78645b89ddb657f122f283f3bbf0924ad7258aa7 /modules/g2_import/helpers
parentab5695ca575da4d5842d4c94924c3ee5c4a6faad (diff)
parenta059eff25d3e4975f39ad04181039d4544e47059 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/g2_import/helpers')
-rw-r--r--modules/g2_import/helpers/g2_import.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php
index d67d4c04..7dd799c8 100644
--- a/modules/g2_import/helpers/g2_import.php
+++ b/modules/g2_import/helpers/g2_import.php
@@ -623,8 +623,10 @@ class g2_import_Core {
}
$tags = "";
+ // Multiword tags have the space changed to dots.s
foreach ($tag_names as $tag_name) {
- $tags .= (strlen($tags) ? ", " : "") . tag::add($g3_item, $tag_name);
+ $tags .= (strlen($tags) ? ", " : "") .
+ tag::add($g3_item, preg_replace('/\s+/', '.', $tag_name));
}
// Tag operations are idempotent so we don't need to map them. Which is good because we don't