diff options
| author | Michaela Brückner <brueckner@data-quest.de> | 2022-08-08 15:50:49 +0200 |
|---|---|---|
| committer | Michaela Brückner <brueckner@data-quest.de> | 2022-08-08 15:50:49 +0200 |
| commit | a57b472ff9ad74e5af84280904d1f9059db21e3c (patch) | |
| tree | 345ddec0114065775df7d247844b3d43ef739fb0 /app/controllers | |
| parent | 8b4f10fc084dc784716ecf5355e4895d00e4290f (diff) | |
file preview, re #852tic-852
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/file.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/file.php b/app/controllers/file.php index 26bf47a..1141f00 100644 --- a/app/controllers/file.php +++ b/app/controllers/file.php @@ -499,6 +499,8 @@ class FileController extends AuthenticatedController $filetype = $file_ref->getFileType(); $this->file = $filetype->convertToStandardFile(); + $this->icon_shape = $this->file->getIcon(Icon::ROLE_INFO)->getShape(); + $this->author = $file_ref->owner->username; $this->author_fullname = $file_ref->owner->getFullName('no_title'); $this->link_to_share = URLHelper::getURL("dispatch.php/file/share_oer/" . $file_ref_id); |
