Commit 748bd825 authored by mmn's avatar mmn

SelftagWidget had mismatching url() definition

parent e6507a0f
...@@ -103,8 +103,8 @@ class PeopletagsWidget extends Widget ...@@ -103,8 +103,8 @@ class PeopletagsWidget extends Widget
$this->out->elementStart('li', 'hashptag mode-' . $mode); $this->out->elementStart('li', 'hashptag mode-' . $mode);
// Avoid space by using raw output. // Avoid space by using raw output.
$pt = '<span class="mark_hash">#</span><a rel="tag" href="' . $pt = '<span class="mark_hash">#</span><a rel="tag" href="' .
$this->url($this->tag->tag) . htmlspecialchars($this->url()) .
'">' . $this->tag->tag . '</a>'; '">' . htmlspecialchars($this->tag->tag) . '</a>';
$this->out->raw($pt); $this->out->raw($pt);
$this->out->elementEnd('li'); $this->out->elementEnd('li');
} }
......
...@@ -29,10 +29,10 @@ if (!defined('GNUSOCIAL')) { exit(1); } ...@@ -29,10 +29,10 @@ if (!defined('GNUSOCIAL')) { exit(1); }
class SelftagsWidget extends PeopletagsWidget class SelftagsWidget extends PeopletagsWidget
{ {
function url($tag) public function url()
{ {
// link to self tag page // link to self tag page
return common_local_url('selftag', array('tag' => $tag)); return common_local_url('selftag', array('tag' => $this->tag->tag));
} }
function label() function label()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment