1
0
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:
Sergey Romanenko
2014-01-13 12:22:43 +02:00
parent f9ec0b9e18
commit 5c03f0cfab

View File

@@ -111,6 +111,8 @@ class FilesmanagerAdmin extends Backend
$abs_path = $files_path . Security::safeName(Request::post('directory_name'));
$error = false;
if ( !is_dir($abs_path) ) {
try {
mkdir($abs_path);
@@ -123,6 +125,8 @@ class FilesmanagerAdmin extends Backend
if ($error) {
Alert::error(__('Directory was not created', 'system'));
} else {
Alert::success(__('Directory was created', 'system'));
}
}