mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-24 19:59:10 -04:00
ALPHA 3.0.2a
This commit is contained in:
2
vendor/league/flysystem/composer.json
vendored
2
vendor/league/flysystem/composer.json
vendored
@@ -19,7 +19,7 @@
|
||||
"require-dev": {
|
||||
"ext-fileinfo": "*",
|
||||
"phpspec/phpspec": "^3.4",
|
||||
"phpunit/phpunit": "^5.7"
|
||||
"phpunit/phpunit": "^5.7.10"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
11
vendor/league/flysystem/src/Adapter/Local.php
vendored
11
vendor/league/flysystem/src/Adapter/Local.php
vendored
@@ -150,18 +150,11 @@ class Local extends AbstractAdapter
|
||||
$this->ensureDirectory(dirname($location));
|
||||
$stream = fopen($location, 'w+b');
|
||||
|
||||
if ( ! $stream) {
|
||||
return false;
|
||||
}
|
||||
|
||||
stream_copy_to_stream($resource, $stream);
|
||||
|
||||
if ( ! fclose($stream)) {
|
||||
if ( ! $stream || stream_copy_to_stream($resource, $stream) === false || ! fclose($stream)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$type = 'file';
|
||||
|
||||
$result = compact('type', 'path');
|
||||
|
||||
if ($visibility = $config->get('visibility')) {
|
||||
@@ -261,7 +254,7 @@ class Local extends AbstractAdapter
|
||||
{
|
||||
$location = $this->applyPathPrefix($path);
|
||||
|
||||
return unlink($location);
|
||||
return @unlink($location);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
1
vendor/league/flysystem/src/MountManager.php
vendored
1
vendor/league/flysystem/src/MountManager.php
vendored
@@ -195,6 +195,7 @@ class MountManager
|
||||
*
|
||||
* @throws InvalidArgumentException
|
||||
* @throws FilesystemNotFoundException
|
||||
* @throws FileExistsException
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user