diff options
| author | Michaela Brückner <brueckner@data-quest.de> | 2022-07-05 09:06:17 +0200 |
|---|---|---|
| committer | Michaela Brückner <brueckner@data-quest.de> | 2022-07-07 07:42:31 +0200 |
| commit | 8457640a75f54b04da8110a7a097d95f035f6c7c (patch) | |
| tree | b45276a408fc3e68885f9752cf7af889980522b3 /app/controllers/file.php | |
| parent | 4a3f9528466d25bbf00cf18cb9c228bdb552c851 (diff) | |
re #852 re #1204
Diffstat (limited to 'app/controllers/file.php')
| -rw-r--r-- | app/controllers/file.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/app/controllers/file.php b/app/controllers/file.php index 2ee852e..b5f609c 100644 --- a/app/controllers/file.php +++ b/app/controllers/file.php @@ -506,8 +506,14 @@ class FileController extends AuthenticatedController $this->formatted_link = '['. $this->linktext .']' . $this->link_to_share; $additional_text = htmlReady(Request::get('additional_text')); + // file details and preview, if available + $this->is_downloadable = $this->file->isDownloadable(User::findCurrent()->id); + $this->file_info_template = $this->file->getInfoTemplate($this->is_downloadable); + $folder = $this->file->getFolderType(); + $this->fullpath = FileManager::getFullPath($folder); + $oer_suggestion_message = sprintf(_("Ihre hochgeladene Datei wurde zur Veröffentlichung im - OER Campus vorgeschlagen:\n\n" + OER-Campus vorgeschlagen:\n\n" . "Dateiname: %s \n" . "Beschreibung: %s \n\n" . "%s \n\n" @@ -532,13 +538,11 @@ class FileController extends AuthenticatedController Request::option('message_id'), '', null, - _('Vorschlag zur Veröffentlichung einer Datei im OER Campus') + _('Vorschlag zur Veröffentlichung einer Datei im OER-Campus') ); $this->response->add_header('X-Dialog-Close', '1'); $this->render_nothing(); - - PageLayout::postSuccess(_('Vorschlag wurde eingereicht.')); - + PageLayout::postSuccess(_('Vorschlag zur Veröffentlichung im OER-Campus wurde eingereicht.')); } } |
