Commit 62e136a3 authored by catch's avatar catch
Browse files

Issue #1049050 by mfb, TwoD, David_Rothstein, jpsoto: Fixed...

Issue #1049050 by mfb, TwoD, David_Rothstein, jpsoto: Fixed file_stream_wrapper_uri_normalize(): remove dead code.
parent e5de0535
...@@ -343,10 +343,7 @@ function file_stream_wrapper_uri_normalize($uri) { ...@@ -343,10 +343,7 @@ function file_stream_wrapper_uri_normalize($uri) {
$uri = $scheme . '://' . $target; $uri = $scheme . '://' . $target;
} }
} }
else {
// The default scheme is file://
$url = 'file://' . $uri;
}
return $uri; return $uri;
} }
...@@ -612,9 +609,8 @@ function file_valid_uri($uri) { ...@@ -612,9 +609,8 @@ function file_valid_uri($uri) {
* A string specifying the filepath or URI of the source file. * A string specifying the filepath or URI of the source file.
* @param $destination * @param $destination
* A URI containing the destination that $source should be copied to. The * A URI containing the destination that $source should be copied to. The
* URI may be a bare filepath (without a scheme) and in that case the default * URI may be a bare filepath (without a scheme). If this value is omitted,
* scheme (file://) will be used. If this value is omitted, Drupal's default * Drupal's default files scheme will be used, usually "public://".
* files scheme will be used, usually "public://".
* @param $replace * @param $replace
* Replace behavior when the destination file already exists: * Replace behavior when the destination file already exists:
* - FILE_EXISTS_REPLACE - Replace the existing file. * - FILE_EXISTS_REPLACE - Replace the existing file.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment