diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-09 17:18:58 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-09 17:18:58 -0700 |
commit | 512f22a600362415f58197842248acc2f2f68be8 (patch) | |
tree | c3a10bf12e13682c3bbce1df2484c776f8f401c3 | |
parent | 41ba1e8380689d096f1bc051e1a397bba0abe377 (diff) |
Change the tag importer to convert spaces to a dot in multi word tags.
-rw-r--r-- | modules/g2_import/helpers/g2_import.php | 4 |
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..66787467 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\s+/', '.', $tag_name)); } // Tag operations are idempotent so we don't need to map them. Which is good because we don't |