From 4d786f8cdda2a1d4944639a23a1b40047c5ae94d Mon Sep 17 00:00:00 2001 From: fberckel Date: Thu, 22 May 2008 20:14:54 +0000 Subject: [PATCH] Changed $rp = realpath to $rp = file_exists, found out it's in the config files as. --- campcaster/src/modules/storageServer/var/conf.php | 2 +- campcaster/src/modules/storageServer/var/conf.php.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/campcaster/src/modules/storageServer/var/conf.php b/campcaster/src/modules/storageServer/var/conf.php index ef845cceb..a40cfa266 100644 --- a/campcaster/src/modules/storageServer/var/conf.php +++ b/campcaster/src/modules/storageServer/var/conf.php @@ -168,7 +168,7 @@ if (!is_null($this_file)) { // make dirpaths better (without "../") foreach (array('storageDir', 'bufferDir', 'transDir', 'accessDir', 'pearPath', 'cronDir') as $d) { - $rp = realpath($CC_CONFIG[$d]); + $rp = file_exists($CC_CONFIG[$d]); // workaround for missing dirs // if ( $rp === FALSE ) { // mkdir( $CC_CONFIG[$d] ); diff --git a/campcaster/src/modules/storageServer/var/conf.php.template b/campcaster/src/modules/storageServer/var/conf.php.template index 2b5255a58..1356d7d62 100644 --- a/campcaster/src/modules/storageServer/var/conf.php.template +++ b/campcaster/src/modules/storageServer/var/conf.php.template @@ -144,7 +144,7 @@ set_include_path('.'.PATH_SEPARATOR.$CC_CONFIG['pearPath'].PATH_SEPARATOR.$old_i // make dirpaths better (without ../) foreach (array('storageDir', 'bufferDir', 'transDir', 'accessDir', 'pearPath', 'cronDir') as $d) { - $rp = realpath($CC_CONFIG[$d]); + $rp = file_exists($CC_CONFIG[$d]); // workaround for missing dirs if ( $rp === FALSE ) { mkdir( $CC_CONFIG[$d] );