root/trunk/lib/helper/MoreTagsHelper.php
| Revision 2, 496 bytes (checked in by nperriault, 8 months ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | sfLoader::loadHelpers('Tags'); |
| 3 | /** |
| 4 | * This function is used to generate a related tag cloud (see taggable plugin) |
| 5 | * but avoid urlencoding the commas in the url. |
| 6 | * |
| 7 | * @param mixed $tags |
| 8 | * @param string $route |
| 9 | * @param string $tag |
| 10 | * @param array $options |
| 11 | * @return string |
| 12 | */ |
| 13 | function more_related_tag_cloud($tags, $route, $tag, $options = array()) |
| 14 | { |
| 15 | $related_cloud = related_tag_cloud($tags, $route, $tag, $options); |
| 16 | return str_replace(urlencode(','), ',', $related_cloud); |
| 17 | } |
Note: See TracBrowser for help on using the browser.
