mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 18:30:20 +02:00
Update filesmanager.admin.php
This commit is contained in:
@@ -111,6 +111,8 @@ class FilesmanagerAdmin extends Backend
|
|||||||
|
|
||||||
$abs_path = $files_path . Security::safeName(Request::post('directory_name'));
|
$abs_path = $files_path . Security::safeName(Request::post('directory_name'));
|
||||||
|
|
||||||
|
$error = false;
|
||||||
|
|
||||||
if ( !is_dir($abs_path) ) {
|
if ( !is_dir($abs_path) ) {
|
||||||
try {
|
try {
|
||||||
mkdir($abs_path);
|
mkdir($abs_path);
|
||||||
@@ -123,6 +125,8 @@ class FilesmanagerAdmin extends Backend
|
|||||||
|
|
||||||
if ($error) {
|
if ($error) {
|
||||||
Alert::error(__('Directory was not created', 'system'));
|
Alert::error(__('Directory was not created', 'system'));
|
||||||
|
} else {
|
||||||
|
Alert::success(__('Directory was created', 'system'));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user