aboutsummaryrefslogtreecommitdiff
path: root/app/class/Controllermedia.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-04-21 18:57:18 +0200
committervincent-peugnet <v.peugnet@free.fr>2020-04-21 18:57:18 +0200
commiteba4d7aa0ee5ea1bcb29e8254c28a272023ea54f (patch)
tree252d23b7713f364e7f7efafdd4f333188ceac5fa /app/class/Controllermedia.php
parent6984e737b706c73baaa5c3c921762706f958d4da (diff)
downloadwcms-eba4d7aa0ee5ea1bcb29e8254c28a272023ea54f.tar.gz
wcms-eba4d7aa0ee5ea1bcb29e8254c28a272023ea54f.zip
correct warning psr 12 : 120 characters lines
Diffstat (limited to 'app/class/Controllermedia.php')
-rw-r--r--app/class/Controllermedia.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/class/Controllermedia.php b/app/class/Controllermedia.php
index 11a27d3..06885b3 100644
--- a/app/class/Controllermedia.php
+++ b/app/class/Controllermedia.php
@@ -102,7 +102,11 @@ class Controllermedia extends Controller
{
if ($this->user->issupereditor() && isset($_POST['action']) && isset($_POST['id'])) {
if ($_POST['action'] == 'delete') {
- $this->mediamanager->multifiledelete($_POST['id']);
+ if ($this->mediamanager->multifiledelete($_POST['id'])) {
+ Model::sendflashmessage('Files deletion successfull', 'success');
+ } else {
+ Model::sendflashmessage('Error while deleting files', 'error');
+ }
} elseif ($_POST['action'] == 'move' && isset($_POST['dir'])) {
$this->mediamanager->multimovefile($_POST['id'], $_POST['dir']);
}