summaryrefslogtreecommitdiff
path: root/app/Core/Helper.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-31 12:37:15 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-31 12:37:15 -0500
commit772804add8095eea9b3ec2a832c2f82fbb9a6fd5 (patch)
tree782a414d15f9091d04bcf3960a957f952958e548 /app/Core/Helper.php
parent66f150d887a34d2b51ff14f22d0fd41a34f8cc77 (diff)
Acl refactoring
Diffstat (limited to 'app/Core/Helper.php')
-rw-r--r--app/Core/Helper.php4
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) {