Changed $rp = realpath to $rp = file_exists, found out it's in the config files as.

This commit is contained in:
fberckel 2008-05-22 20:14:54 +00:00
parent 2238773916
commit 4d786f8cdd
2 changed files with 2 additions and 2 deletions

View File

@ -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] );

View File

@ -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] );