forked from ZwiiCMS-Team/ZwiiCMS
0.9.8
This commit is contained in:
parent
4845782537
commit
ed33fbf987
13
core/vendor/filemanager/dialog.php
vendored
13
core/vendor/filemanager/dialog.php
vendored
@ -234,10 +234,17 @@ if (!isset($_GET['type'])){
|
|||||||
|
|
||||||
$extensions=null;
|
$extensions=null;
|
||||||
if (isset($_GET['extensions'])){
|
if (isset($_GET['extensions'])){
|
||||||
$extensions = explode(',', urldecode($_GET['extensions']));
|
$extensions = json_decode(urldecode($_GET['extensions']));
|
||||||
|
$ext_tmp = array();
|
||||||
|
foreach($extensions as $extension){
|
||||||
|
$extension = fix_strtolower($extension);
|
||||||
|
if(in_array( $extension, $config['ext'])){
|
||||||
|
$ext_tmp[]=$extension;
|
||||||
|
}
|
||||||
|
}
|
||||||
if($extensions){
|
if($extensions){
|
||||||
$ext = $extensions;
|
$ext = $ext_tmp;
|
||||||
$show_filter_buttons = false;
|
$config['show_filter_buttons'] = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user