diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-07-23 10:43:40 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-23 10:43:40 -0700 |
| commit | 913d63b1a0cf45922639f43159027e7221344b73 (patch) | |
| tree | 60e4f40654390204ccb7f6b260618e5127bfee45 /modules/tag/controllers | |
| parent | 1fbdf1a1e00a176686b051bb932d998ad683b2be (diff) | |
| parent | 070884d9e248ba692e49949851099e4d79285ef2 (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
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)); } } |
