We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16747fe commit 0daf969Copy full SHA for 0daf969
src/templates/Document/View.phtml
@@ -12,12 +12,11 @@ $attachments = $this->getContext()->attachments;
12
$comments = $this->getContext()->comments;
13
$object = $this->getContext()->document;
14
$object_id = $this->getContext()->document_id;
15
-$logged_in = $this->getContext()->user;
16
-$logged_in_id = ($logged_in ? $logged_in->getId() : null);
17
18
$logged_in = (
19
isset($_SESSION['user_id']) ? new User($_SESSION['user_id']) : null
20
);
+$logged_in_id = ($logged_in ? $logged_in->getId() : null);
21
22
$title = "Document Not Found";
23
$description = "The requested document does not exist or could not be found.";
0 commit comments