summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2018-04-20 16:05:50 -0700
committerFrédéric Guillot <fred@kanboard.net>2018-04-20 16:05:50 -0700
commitbb406d57b1c1ad2736774be18b2f7b4d31abcf63 (patch)
treea4a89775f5519c178679f99115dd3b84efd051cb /app
parent32a95ce5ea08ec5b263224865b0695c7459928b0 (diff)
Update Parsedown library
Diffstat (limited to 'app')
-rw-r--r--app/Core/Markdown.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/Core/Markdown.php b/app/Core/Markdown.php
index 4487bf2a..b8fe618f 100644
--- a/app/Core/Markdown.php
+++ b/app/Core/Markdown.php
@@ -91,7 +91,7 @@ class Markdown extends Parsedown
$user = $this->container['userCacheDecorator']->getByUsername($username);
if (! empty($user)) {
- $url = $this->container['helper']->url->href('UserViewController', 'profile', array('user_id' => $user['id']));
+ $url = $this->container['helper']->url->to('UserViewController', 'profile', array('user_id' => $user['id']));
return array(
'extent' => strlen($username) + 1,
@@ -124,14 +124,13 @@ class Markdown extends Parsedown
$token = $this->container['memoryCache']->proxy($this->container['taskFinderModel'], 'getProjectToken', $task_id);
if (! empty($token)) {
- return $this->container['helper']->url->href(
+ return $this->container['helper']->url->to(
'TaskViewController',
'readonly',
array(
'token' => $token,
'task_id' => $task_id,
),
- false,
'',
true
);
@@ -140,7 +139,7 @@ class Markdown extends Parsedown
return '';
}
- return $this->container['helper']->url->href(
+ return $this->container['helper']->url->to(
'TaskViewController',
'show',
array('task_id' => $task_id)