Skip to content
Snippets Groups Projects
Commit f8a72bed authored by Moritz Strohm's avatar Moritz Strohm
Browse files

Merge branch 'studip-5.5' into 'master'

made plugin compatible with Stud.IP 5.5 and PHP 8

See merge request !1
parents 84adb71a d063b929
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())
) )
); );
} }
......
pluginname=NextcloudPlugin pluginname=NextcloudPlugin
pluginclassname=NextcloudPlugin pluginclassname=NextcloudPlugin
version=3.0.1 version=3.1.0
origin=data-quest origin=data-quest
studipMinVersion=5.0 studipMinVersion=5.0
studipMaxVersion=5.4.99 studipMaxVersion=5.5.99
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<?= $aside_template->render() ?> <?= $aside_template->render() ?>
<div id="file_management_forms"> <div id="file_management_forms">
<form method="post" data-dialog class="default" <form method="post" data-dialog class="default"
action="<?= $controller->link_for('/edit/' . $file->getId()) ?>"> action="<?= PluginEngine::getURL(NextcloudPlugin::class, [], 'file/edit/' . $file->getId()) ?>">
<?= CSRFProtection::tokenTag() ?> <?= CSRFProtection::tokenTag() ?>
<fieldset> <fieldset>
<legend><?= dgettext('NextcloudPlugin', 'Datei bearbeiten') ?></legend> <legend><?= dgettext('NextcloudPlugin', 'Datei bearbeiten') ?></legend>
......
<form action="<?= $controller->link_for('file/update/' . $file->getId(), ['from_plugin' => $from_plugin]) ?>" <form action="<?= PluginEngine::getURL(NextcloudPlugin::class, ['from_plugin' => $from_plugin], 'file/update/' . $file->getId()) ?>"
enctype="multipart/form-data" method="post" class="default"> enctype="multipart/form-data" method="post" class="default">
<?= CSRFProtection::tokenTag() ?> <?= CSRFProtection::tokenTag() ?>
<fieldset> <fieldset>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment