bug fixes

This commit is contained in:
Diego Najar 2017-06-26 22:50:56 +02:00
parent 9d865eb6ce
commit c28688dd6e
3 changed files with 22 additions and 7 deletions

View File

@ -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

View File

@ -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;
}
}

View File

@ -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;
}