@@ -41,7 +41,8 @@ discard block |
||
41 | 41 | <?php if ($document->state === 'published') : ?> |
42 | 42 | <td title="<?= date('d-m-Y H:i:s', |
43 | 43 | $document->publicationDate) ?>"><?= \CloudControl\Cms\util\StringUtil::timeElapsedString($document->publicationDate) ?></td> |
44 | - <?php else : ?> |
|
44 | + <?php else { |
|
45 | + : ?> |
|
45 | 46 | <td>Not yet</td> |
46 | 47 | <?php endif ?> |
47 | 48 | </tr> |
@@ -96,6 +97,7 @@ discard block |
||
96 | 97 | function getDocumentSlug($path, $document) { |
97 | 98 | return substr($path, 1) . ($path === '/' ? '' : '/') . $document->slug; |
98 | 99 | } |
100 | +} |
|
99 | 101 | |
100 | 102 | function getEditDocumentLink($request, $cmsPrefix, $path, $document) { |
101 | 103 | return $request::$subfolders . $cmsPrefix . '/documents/edit-document?slug=' . getDocumentSlug($path, $document); |