summaryrefslogtreecommitdiff
path: root/includes/stream_wrappers.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/stream_wrappers.inc')
-rw-r--r--includes/stream_wrappers.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/stream_wrappers.inc b/includes/stream_wrappers.inc
index a78374c96..f49d3bc29 100644
--- a/includes/stream_wrappers.inc
+++ b/includes/stream_wrappers.inc
@@ -539,7 +539,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface
*/
public function unlink($uri) {
$this->uri = $uri;
- return unlink($this->getLocalPath());
+ return drupal_unlink($this->getLocalPath());
}
/**
@@ -636,10 +636,10 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface
public function rmdir($uri, $options) {
$this->uri = $uri;
if ($options & STREAM_REPORT_ERRORS) {
- return rmdir($this->getLocalPath());
+ return drupal_rmdir($this->getLocalPath());
}
else {
- return @rmdir($this->getLocalPath());
+ return @drupal_rmdir($this->getLocalPath());
}
}