diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-01-20 02:05:13 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-01-20 02:05:13 +0100 |
commit | 8567e8fd802a379d63b9e019123d7f29f6e28f81 (patch) | |
tree | 64a8c474cbe9b008bb5de46e617906eb484fcaf6 | |
parent | 49273cba81ea86639a23dfd5a43bda2f6b01f075 (diff) | |
download | wcms-8567e8fd802a379d63b9e019123d7f29f6e28f81.tar.gz wcms-8567e8fd802a379d63b9e019123d7f29f6e28f81.zip |
fix direct media homepage using menu
-rw-r--r-- | app/class/Controllermedia.php | 5 |
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); |