diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-06-29 22:29:34 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-06-29 22:29:34 -0700 |
commit | 8b913661cd4567583f514d8bc87ba220e7e05de2 (patch) | |
tree | 3acf55353058c3970f294d7486ec461f91b49d99 /includes/stream_wrappers.inc | |
parent | 4cede694ab76a1e02bacb9c79d89d8bd4659a842 (diff) | |
download | brdo-8b913661cd4567583f514d8bc87ba220e7e05de2.tar.gz brdo-8b913661cd4567583f514d8bc87ba220e7e05de2.tar.bz2 |
Issue #1083982 by Damien Tournoud: Fixed support for remote streamwrappers.
Diffstat (limited to 'includes/stream_wrappers.inc')
-rw-r--r-- | includes/stream_wrappers.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/stream_wrappers.inc b/includes/stream_wrappers.inc index 7df1f9dc6..3c88f3d8f 100644 --- a/includes/stream_wrappers.inc +++ b/includes/stream_wrappers.inc @@ -341,7 +341,11 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * Base implementation of chmod(). */ function chmod($mode) { - return @chmod($this->getLocalPath(), $mode); + $output = @chmod($this->getLocalPath(), $mode); + // We are modifying the underlying file here, so we have to clear the stat + // cache so that PHP understands that URI has changed too. + clearstatcache(); + return $output; } /** |