From d642bcb6de260483b8abc52968b59f5f88fdebef Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 11 Mar 2010 13:54:18 +1300 Subject: [PATCH] When running a script we might run it in the DAViCal root, not webroot. --- inc/always.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/always.php b/inc/always.php index ead77509..c111cb8e 100644 --- a/inc/always.php +++ b/inc/always.php @@ -102,6 +102,9 @@ else if ( @file_exists('/usr/local/etc/davical/config.php') ) { else if ( @file_exists('../config/config.php') ) { include('../config/config.php'); } +else if ( @file_exists('config/config.php') ) { + include('config/config.php'); +} else { include('davical_configuration_missing.php'); exit;