bug fixes
This commit is contained in:
parent
9d865eb6ce
commit
c28688dd6e
|
@ -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
|
||||
|
|
|
@ -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],
|
||||
|
@ -736,3 +735,14 @@ 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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue