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.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Core/Markdown.php b/app/Core/Markdown.php
index 592c29b1..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,7 +116,7 @@ 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(