From 495c099e8509f712ca83a82354c4e034407380de Mon Sep 17 00:00:00 2001 From: Jarrett Jordaan Date: Tue, 15 Dec 2009 15:25:32 +0200 Subject: [PATCH] PT:1967272: Resolved location of config files for source only installs --- setup/wizard/steps/configuration.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup/wizard/steps/configuration.php b/setup/wizard/steps/configuration.php index c8019b7..e857e60 100644 --- a/setup/wizard/steps/configuration.php +++ b/setup/wizard/steps/configuration.php @@ -703,17 +703,17 @@ class configuration extends Step */ public function getContentPath() { $configPath = realpath('../../../config/config-path'); - if($configPath == '') + if(!file_exists($configPath)) $configPath = realpath('../../config/config-path'); - if(!$configPath) return false; + if(!file_exists($configPath)) return false; return $configPath; } public function getCachePath() { $cachePath = realpath('../../../config/cache-path'); - if($cachePath == '') + if(!file_exists($cachePath)) $cachePath = realpath('../../config/cache-path'); - if(!$cachePath) return false; + if(!file_exists($cachePath)) return false; return $cachePath; } } -- libgit2 0.21.4