From: Mikael Nordfeldth Date: Tue, 23 Jun 2015 10:37:00 +0000 (+0200) Subject: SelftagWidget had mismatching url() definition X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=748bd825e748155a378aba5593ac4a4885ccb4bf;p=quix0rs-gnu-social.git SelftagWidget had mismatching url() definition --- diff --git a/lib/peopletagswidget.php b/lib/peopletagswidget.php index 1da153c85f..31c279cbff 100644 --- a/lib/peopletagswidget.php +++ b/lib/peopletagswidget.php @@ -103,8 +103,8 @@ class PeopletagsWidget extends Widget $this->out->elementStart('li', 'hashptag mode-' . $mode); // Avoid space by using raw output. $pt = '#'; + htmlspecialchars($this->url()) . + '">' . htmlspecialchars($this->tag->tag) . ''; $this->out->raw($pt); $this->out->elementEnd('li'); } diff --git a/lib/selftagswidget.php b/lib/selftagswidget.php index e2530769df..aff4544c0d 100644 --- a/lib/selftagswidget.php +++ b/lib/selftagswidget.php @@ -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()