From a724915f82a0c25cabe60561cd9b4f7f72541734 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 30 Apr 2010 01:33:17 +0000 Subject: #551658 by pwolanin, aaron, drewish: Move private files to an opt-in system, and no longer force private files to live within web-accessible directory. --- includes/stream_wrappers.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/stream_wrappers.inc') diff --git a/includes/stream_wrappers.inc b/includes/stream_wrappers.inc index 288c3979d..87acc5440 100644 --- a/includes/stream_wrappers.inc +++ b/includes/stream_wrappers.inc @@ -657,7 +657,7 @@ class DrupalPrivateStreamWrapper extends DrupalLocalStreamWrapper { * Implements abstract public function getDirectoryPath() */ public function getDirectoryPath() { - return variable_get('file_private_path', conf_path() . '/private/files'); + return variable_get('file_private_path', ''); } /** @@ -684,7 +684,7 @@ class DrupalTemporaryStreamWrapper extends DrupalLocalStreamWrapper { * Implements abstract public function getDirectoryPath() */ public function getDirectoryPath() { - return variable_get('file_temporary_path', conf_path() . '/private/temp'); + return variable_get('file_temporary_path', sys_get_temp_dir()); } /** -- cgit v1.2.3