From 7f980cffcc3a20f5c93e128313c1a4a47b39dc8e Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 15 Dec 2015 22:39:39 -0500 Subject: Show profile link for @username mentions --- app/Helper/Text.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/Helper') diff --git a/app/Helper/Text.php b/app/Helper/Text.php index d2075fe4..59bfd997 100644 --- a/app/Helper/Text.php +++ b/app/Helper/Text.php @@ -3,14 +3,15 @@ namespace Kanboard\Helper; use Kanboard\Core\Markdown; +use Kanboard\Core\Base; /** - * Text helpers + * Text Helpers * * @package helper * @author Frederic Guillot */ -class Text extends \Kanboard\Core\Base +class Text extends Base { /** * Markdown transformation @@ -21,7 +22,7 @@ class Text extends \Kanboard\Core\Base */ public function markdown($text, array $link = array()) { - $parser = new Markdown($link, $this->helper->url); + $parser = new Markdown($this->container, $link); $parser->setMarkupEscaped(MARKDOWN_ESCAPE_HTML); return $parser->text($text); } -- cgit v1.2.3