summaryrefslogtreecommitdiff
path: root/modules/tag
diff options
context:
space:
mode:
authorChad Parry <github@chad.parry.org>2011-04-22 14:10:42 -0600
committerChad Parry <github@chad.parry.org>2011-04-22 14:10:42 -0600
commit944cb72eea946f4c45a04b7e4c7c33929fa8b9f3 (patch)
tree5bce3f7d88df65b0c26cab24807ce287f8607e6b /modules/tag
parent567522bfa08c370bb5baf8454afc5b04bc9e49b4 (diff)
parent5af74d4714005c565fc9550dbf1f0689c18429a7 (diff)
Merge remote branch 'origin/master' into rawphoto
Diffstat (limited to 'modules/tag')
-rw-r--r--modules/tag/helpers/tag_event.php2
-rw-r--r--modules/tag/models/tag.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/tag/helpers/tag_event.php b/modules/tag/helpers/tag_event.php
index df81ae65..b415b42d 100644
--- a/modules/tag/helpers/tag_event.php
+++ b/modules/tag/helpers/tag_event.php
@@ -149,7 +149,7 @@ class tag_event_Core {
static function info_block_get_metadata($block, $item) {
$tags = array();
foreach (tag::item_tags($item) as $tag) {
- $tags[] = "<a href=\"" . url::site("tag/{$tag->name}") . "\">{$tag->name}</a>";
+ $tags[] = "<a href=\"{$tag->url()}\">{$tag->name}</a>";
}
if ($tags) {
$info = $block->content->metadata;
diff --git a/modules/tag/models/tag.php b/modules/tag/models/tag.php
index 479a7da0..bd665667 100644
--- a/modules/tag/models/tag.php
+++ b/modules/tag/models/tag.php
@@ -132,7 +132,7 @@ class Tag_Model_Core extends ORM {
* @param string $query the query string (eg "page=3")
*/
public function url($query=null) {
- $url = url::site("tag/{$this->id}/{$this->name}");
+ $url = url::site("tag/{$this->id}/" . urlencode($this->name));
if ($query) {
$url .= "?$query";
}