SelftagWidget had mismatching url() definition

This commit is contained in:
Mikael Nordfeldth 2015-06-23 12:37:00 +02:00
parent e6507a0f18
commit 748bd825e7
2 changed files with 4 additions and 4 deletions

View File

@ -103,8 +103,8 @@ class PeopletagsWidget extends Widget
$this->out->elementStart('li', 'hashptag mode-' . $mode);
// Avoid space by using raw output.
$pt = '<span class="mark_hash">#</span><a rel="tag" href="' .
$this->url($this->tag->tag) .
'">' . $this->tag->tag . '</a>';
htmlspecialchars($this->url()) .
'">' . htmlspecialchars($this->tag->tag) . '</a>';
$this->out->raw($pt);
$this->out->elementEnd('li');
}

View File

@ -29,10 +29,10 @@ if (!defined('GNUSOCIAL')) { exit(1); }
class SelftagsWidget extends PeopletagsWidget
{
function url($tag)
public function url()
{
// 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()