diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-31 12:37:15 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-31 12:37:15 -0500 |
commit | 772804add8095eea9b3ec2a832c2f82fbb9a6fd5 (patch) | |
tree | 782a414d15f9091d04bcf3960a957f952958e548 /app/Core/Helper.php | |
parent | 66f150d887a34d2b51ff14f22d0fd41a34f8cc77 (diff) |
Acl refactoring
Diffstat (limited to 'app/Core/Helper.php')
-rw-r--r-- | app/Core/Helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Core/Helper.php b/app/Core/Helper.php index 82dd6698..5eaa8dc9 100644 --- a/app/Core/Helper.php +++ b/app/Core/Helper.php @@ -498,14 +498,14 @@ class Helper * @param array $link Link parameters for replacement * @return string */ - public function markdown($text, array $link = array('controller' => 'task', 'action' => 'show', 'params' => array())) + public function markdown($text, array $link = array()) { $html = Parsedown::instance() ->setMarkupEscaped(true) # escapes markup (HTML) ->text($text); // Replace task #123 by a link to the task - if (preg_match_all('!#(\d+)!i', $html, $matches, PREG_SET_ORDER)) { + if (! empty($link) && preg_match_all('!#(\d+)!i', $html, $matches, PREG_SET_ORDER)) { foreach ($matches as $match) { |