diff options
| author | Romain LE DISEZ <romain.git@ledisez.net> | 2009-07-23 19:44:40 +0200 |
|---|---|---|
| committer | Romain LE DISEZ <romain.git@ledisez.net> | 2009-07-23 19:44:40 +0200 |
| commit | b181707c1651af8737c2e6ff550fd20f480b781b (patch) | |
| tree | a39b32912bdb37cbf213d146d8be47f028e88590 /modules/tag/controllers | |
| parent | 386130114b3e3a9cf1617a1ea62407f569ee391c (diff) | |
| parent | 070884d9e248ba692e49949851099e4d79285ef2 (diff) | |
Merge commit 'upstream/master'
Conflicts:
modules/gallery/helpers/access.php
Diffstat (limited to 'modules/tag/controllers')
| -rw-r--r-- | modules/tag/controllers/tags.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php index 85f6d16e..5dd07935 100644 --- a/modules/tag/controllers/tags.php +++ b/modules/tag/controllers/tags.php @@ -53,10 +53,10 @@ class Tags_Controller extends REST_Controller { $form = tag::get_add_form($item); if ($form->validate()) { - foreach (split("[\,\ \;]", $form->add_tag->inputs["name"]->value) as $tag_name) { + foreach (split("[\,\;]", $form->add_tag->inputs["name"]->value) as $tag_name) { $tag_name = trim($tag_name); if ($tag_name) { - $tag = tag::add($item, $tag_name); + $tag = tag::add($item, str_replace(" ", ".", $tag_name)); } } |
