From c28688dd6e52bcbcfef810bb72ac60c8f5973747 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Mon, 26 Jun 2017 22:50:56 +0200 Subject: [PATCH] bug fixes --- .../admin/controllers/configure-plugin.php | 1 + .../admin/themes/default/css/default.css | 22 ++++++++++++++----- bl-kernel/helpers/filesystem.class.php | 6 ++++- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/bl-kernel/admin/controllers/configure-plugin.php b/bl-kernel/admin/controllers/configure-plugin.php index 2423dbb8..8082c794 100644 --- a/bl-kernel/admin/controllers/configure-plugin.php +++ b/bl-kernel/admin/controllers/configure-plugin.php @@ -48,6 +48,7 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' ) if( $plugin->post() ) { // Create an alert Alert::set( $Language->g('The changes have been saved') ); + Redirect::page('configure-plugin/'.$plugin->className()); } else { // Create an alert diff --git a/bl-kernel/admin/themes/default/css/default.css b/bl-kernel/admin/themes/default/css/default.css index e88ac30d..521b58a9 100644 --- a/bl-kernel/admin/themes/default/css/default.css +++ b/bl-kernel/admin/themes/default/css/default.css @@ -681,12 +681,6 @@ div.plugin-links > span.separator { width: 100%; } -#jsformplugin ul { - padding: 0; - list-style: none; - margin-bottom: 10px; -} - #jsformplugin button[type=submit] { margin-left: 200px; border-radius: 2px; @@ -705,6 +699,11 @@ div.plugin-links > span.separator { color: #fff; } +#jsformplugin button[type=submit].small { + font-size: 0.9em; + min-height: 20px; +} + #jsformplugin > div > label, #jsformplugin > div > input[type=text], #jsformplugin > div > input[type=checkbox], @@ -735,4 +734,15 @@ div.plugin-links > span.separator { #jsformplugin > div > textarea { min-height: 100px; +} + +@media (max-width: 960px) { + + #jsformplugin div { + display: block; + } + + #jsformplugin button[type=submit] { + margin: 0; + } } \ No newline at end of file diff --git a/bl-kernel/helpers/filesystem.class.php b/bl-kernel/helpers/filesystem.class.php index 5db132f2..0fc43b4c 100644 --- a/bl-kernel/helpers/filesystem.class.php +++ b/bl-kernel/helpers/filesystem.class.php @@ -3,7 +3,7 @@ class Filesystem { // Returns an array with the absolutes directories. - public static function listDirectories($path, $regex='*') + public static function listDirectories($path, $regex='*', $sortByDate=false) { $directories = glob($path.$regex, GLOB_ONLYDIR); @@ -11,6 +11,10 @@ class Filesystem { return array(); } + if($sortByDate) { + usort($directories, create_function('$a,$b', 'return filemtime($b) - filemtime($a);')); + } + return $directories; }