aboutsummaryrefslogtreecommitdiff
path: root/app/class/Controllermedia.php
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2020-12-19 19:52:59 +0100
committern-peugnet <n.peugnet@free.fr>2020-12-19 19:52:59 +0100
commitd2bbcab233dabe3b04f8c3b94a947ec174540418 (patch)
tree8ed06c1b412cc20f899686738a49bef6b1ead7d8 /app/class/Controllermedia.php
parent9338d030f38b465be5f6307f5ee6f2e20d904856 (diff)
downloadwcms-d2bbcab233dabe3b04f8c3b94a947ec174540418.tar.gz
wcms-d2bbcab233dabe3b04f8c3b94a947ec174540418.zip
run phpcbf and add fix target to Makefile
Diffstat (limited to 'app/class/Controllermedia.php')
-rw-r--r--app/class/Controllermedia.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/class/Controllermedia.php b/app/class/Controllermedia.php
index 678f28e..f377151 100644
--- a/app/class/Controllermedia.php
+++ b/app/class/Controllermedia.php
@@ -34,7 +34,7 @@ class Controllermedia extends Controller
} catch (\InvalidArgumentException $exception) {
throw new LogicException($exception->getMessage());
}
-
+
$mediaopt = new Mediaopt($_GET);
if (empty($mediaopt->path())) {
$mediaopt->setpath(DIRECTORY_SEPARATOR . Model::MEDIA_DIR);
@@ -42,7 +42,7 @@ class Controllermedia extends Controller
if (is_dir($mediaopt->dir())) {
$medialist = $this->mediamanager->medialistopt($mediaopt);
-
+
$dirlist = $this->mediamanager->listdir(Model::MEDIA_DIR);
$pathlist = [];
@@ -59,7 +59,7 @@ class Controllermedia extends Controller
$vars['dirlist'] = $dirlist;
$vars['pathlist'] = $pathlist;
$vars['mediaopt'] = $mediaopt;
-
+
$this->showtemplate('media', $vars);
} else {
$this->routedirect('media');