summaryrefslogtreecommitdiff
path: root/app/Core/Markdown.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Markdown.php')
-rw-r--r--app/Core/Markdown.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Core/Markdown.php b/app/Core/Markdown.php
index 0e7b6425..b5abe5ed 100644
--- a/app/Core/Markdown.php
+++ b/app/Core/Markdown.php
@@ -87,7 +87,7 @@ class Markdown extends Parsedown
protected function inlineUserLink(array $Excerpt)
{
if (! $this->isPublicLink && preg_match('/^@([^\s]+)/', $Excerpt['text'], $matches)) {
- $user_id = $this->container['user']->getIdByUsername($matches[1]);
+ $user_id = $this->container['userModel']->getIdByUsername($matches[1]);
if (! empty($user_id)) {
$url = $this->container['helper']->url->href('UserViewController', 'profile', array('user_id' => $user_id));
@@ -116,11 +116,11 @@ class Markdown extends Parsedown
private function buildTaskLink($task_id)
{
if ($this->isPublicLink) {
- $token = $this->container['memoryCache']->proxy($this->container['taskFinder'], 'getProjectToken', $task_id);
+ $token = $this->container['memoryCache']->proxy($this->container['taskFinderModel'], 'getProjectToken', $task_id);
if (! empty($token)) {
return $this->container['helper']->url->href(
- 'task',
+ 'TaskViewController',
'readonly',
array(
'token' => $token,
@@ -133,7 +133,7 @@ class Markdown extends Parsedown
}
return $this->container['helper']->url->href(
- 'task',
+ 'TaskViewController',
'show',
array('task_id' => $task_id)
);