When running a script we might run it in the DAViCal root, not webroot.

This commit is contained in:
Andrew McMillan 2010-03-11 13:54:18 +13:00
parent 8ab5d8a404
commit d642bcb6de

View File

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