aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-01-20 02:05:13 +0100
committervincent-peugnet <v.peugnet@free.fr>2020-01-20 02:05:13 +0100
commit8567e8fd802a379d63b9e019123d7f29f6e28f81 (patch)
tree64a8c474cbe9b008bb5de46e617906eb484fcaf6
parent49273cba81ea86639a23dfd5a43bda2f6b01f075 (diff)
downloadwcms-8567e8fd802a379d63b9e019123d7f29f6e28f81.tar.gz
wcms-8567e8fd802a379d63b9e019123d7f29f6e28f81.zip
fix direct media homepage using menu
-rw-r--r--app/class/Controllermedia.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/class/Controllermedia.php b/app/class/Controllermedia.php
index 3e323f5..8423d18 100644
--- a/app/class/Controllermedia.php
+++ b/app/class/Controllermedia.php
@@ -32,8 +32,11 @@ class Controllermedia extends Controller
if (!$this->mediamanager->dircheck(Model::THUMBNAIL_DIR)) {
throw new Exception("Media error : Cant create /media/thumbnail folder");
}
-
+
$mediaopt = new Medialist($_GET);
+ if(empty($mediaopt->path())) {
+ $mediaopt->setpath(DIRECTORY_SEPARATOR . Model::MEDIA_DIR);
+ }
if(is_dir($mediaopt->dir())) {
$medialist = $this->mediamanager->medialistopt($mediaopt);