diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-27 18:04:55 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-27 18:04:55 -0700 |
| commit | 4b6775e614040e91fce8a142f840d44258713a85 (patch) | |
| tree | 5d49b1643c725cca36eb80c88fad4e50e3986e2f /modules/tag/controllers | |
| parent | a4c807232abaa4edd501ad5f4d7f06dac64f7ff8 (diff) | |
Clean up amd simplify the tag processing: Only allow comma separators between
phrases. Using only 1 separator cleans up the javascript as well, as we
can use some of the jquery autocomplete to set the tag separator.
Diffstat (limited to 'modules/tag/controllers')
| -rw-r--r-- | modules/tag/controllers/tags.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php index 69178925..c993e374 100644 --- a/modules/tag/controllers/tags.php +++ b/modules/tag/controllers/tags.php @@ -81,7 +81,7 @@ class Tags_Controller extends REST_Controller { public function autocomplete() { $tags = array(); - $tag_parts = preg_split("#[,\s]+# ", $this->input->get("q")); + $tag_parts = preg_split("#,#", $this->input->get("q")); $limit = $this->input->get("limit"); $tag_part = end($tag_parts); $tag_list = ORM::factory("tag") |
