diff --git a/htdocs/conf/conf.class.php b/htdocs/conf/conf.class.php index e29b235dfe3..84d4e974cd6 100644 --- a/htdocs/conf/conf.class.php +++ b/htdocs/conf/conf.class.php @@ -1,6 +1,7 @@ - * Copyright (C) 2003 Xavier Dutoit + * Copyright (C) 2003 Xavier Dutoit + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -124,13 +125,13 @@ class WebcalConf { $this->enabled = 1; - $this->url = PHPWEBCALENDAR_URL; + $this->url = defined("PHPWEBCALENDAR_URL")?PHPWEBCALENDAR_URL:""; $this->db = new DbConf(); - $this->db->host = PHPWEBCALENDAR_HOST; - $this->db->user = PHPWEBCALENDAR_USER; - $this->db->pass = PHPWEBCALENDAR_PASS; - $this->db->name = PHPWEBCALENDAR_DBNAME; + $this->db->host = defined("PHPWEBCALENDAR_HOST")?PHPWEBCALENDAR_HOST:""; + $this->db->user = defined("PHPWEBCALENDAR_USER")?PHPWEBCALENDAR_USER:""; + $this->db->pass = defined("PHPWEBCALENDAR_PASS")?PHPWEBCALENDAR_PASS:""; + $this->db->name = defined("PHPWEBCALENDAR_DBNAME")?PHPWEBCALENDAR_DBNAME:""; } }