diff --git a/modes/filebrowser.php b/modes/filebrowser.php index 16796af..7bd1c26 100644 --- a/modes/filebrowser.php +++ b/modes/filebrowser.php @@ -3,7 +3,11 @@ $paths = Access::getAllowedPaths(); if (empty($_POST)) { - loadPicTemplate("templates/filebrowser.phtml", array("paths" => $paths)); + $appConf = loadPicFile("conf/app.json"); + loadPicTemplate("templates/filebrowser.phtml", array( + "paths" => $paths, + "imageSizes" => json_decode($appConf, true)["image_sizes"], + )); exit(); } if (!isset($_POST["path"]) || !is_numeric($_POST["path"])) { diff --git a/templates/filebrowser.phtml b/templates/filebrowser.phtml index 432d25d..2ec894a 100644 --- a/templates/filebrowser.phtml +++ b/templates/filebrowser.phtml @@ -117,6 +117,10 @@ Keyboard
shortcuts } + +