Skip to content
Snippets Groups Projects
Commit 16fb0200 authored by Murtaza Sultani's avatar Murtaza Sultani
Browse files

Fix file name issue on post error and success notification

parent 3b4f1694
No related branches found
No related tags found
1 merge request!1made plugin compatible with Stud.IP 5.5 and PHP 8
...@@ -114,7 +114,7 @@ class FileController extends PluginController ...@@ -114,7 +114,7 @@ class FileController extends PluginController
PageLayout::postError( PageLayout::postError(
sprintf( sprintf(
dgettext('NextcloudPlugin', 'Ein Fehler trat auf beim Aktualisieren der Datei „%s“.'), dgettext('NextcloudPlugin', 'Ein Fehler trat auf beim Aktualisieren der Datei „%s“.'),
htmlReady($this->file_ref->name) htmlReady($this->file->getFilename())
), ),
$this->errors $this->errors
); );
...@@ -122,7 +122,7 @@ class FileController extends PluginController ...@@ -122,7 +122,7 @@ class FileController extends PluginController
PageLayout::postSuccess( PageLayout::postSuccess(
sprintf( sprintf(
dgettext('NextcloudPlugin', 'Die Datei „%s“ wurde aktualisiert!'), dgettext('NextcloudPlugin', 'Die Datei „%s“ wurde aktualisiert!'),
htmlReady($this->file_ref->name) htmlReady($this->file->getFilename())
) )
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment