Merge pull request #2879 from gergo85/patch-2

Fixed spaces
This commit is contained in:
Samuel Georges 2017-05-20 10:26:59 +10:00 committed by GitHub
commit afad2138ec
1 changed files with 7 additions and 7 deletions

View File

@ -354,7 +354,7 @@ class AssetList extends WidgetBase
if (!@File::move($originalFullPath, $newFullPath)) {
throw new ApplicationException(Lang::get(
'cms::lang.asset.error_moving_file',
['file'=>$basename]
['file' => $basename]
));
}
}
@ -362,28 +362,28 @@ class AssetList extends WidgetBase
if (!@File::copyDirectory($originalFullPath, $newFullPath)) {
throw new ApplicationException(Lang::get(
'cms::lang.asset.error_moving_directory',
['dir'=>$basename]
['dir' => $basename]
));
}
if (strpos($originalFullPath, '../') !== false) {
throw new ApplicationException(Lang::get(
'cms::lang.asset.error_deleting_directory',
['dir'=>$basename]
['dir' => $basename]
));
}
if (strpos($originalFullPath, $safeDir) !== 0) {
throw new ApplicationException(Lang::get(
'cms::lang.asset.error_deleting_directory',
['dir'=>$basename]
['dir' => $basename]
));
}
if (!@File::deleteDirectory($originalFullPath)) {
throw new ApplicationException(Lang::get(
'cms::lang.asset.error_deleting_directory',
['dir'=>$basename]
['dir' => $basename]
));
}
}
@ -414,7 +414,7 @@ class AssetList extends WidgetBase
if (!File::makeDirectory($assetsPath)) {
throw new ApplicationException(Lang::get(
'cms::lang.cms_object.error_creating_directory',
['name'=>$assetsPath]
['name' => $assetsPath]
));
}
}
@ -655,7 +655,7 @@ class AssetList extends WidgetBase
if ($uploadedFile->getSize() > $maxSize) {
throw new ApplicationException(Lang::get(
'cms::lang.asset.too_large',
['max_size '=> File::sizeToString($maxSize)]
['max_size' => File::sizeToString($maxSize)]
));
}