X-Git-Url: https://git.cweiske.de/bdrem.git/blobdiff_plain/e946d300f1c3c0d5c5805cd73c035fde0a4d0de2..2e18a05a2cedf343b0d0f5fd3e4e6a8d65e2647e:/src/bdrem/Config.php diff --git a/src/bdrem/Config.php b/src/bdrem/Config.php index 37c4c64..65e353d 100644 --- a/src/bdrem/Config.php +++ b/src/bdrem/Config.php @@ -5,19 +5,21 @@ class Config { public $source; public $date; - public $daysPrev; - public $daysNext; + public $daysPrev = 3; + public $daysNext = 7; public $locale; - public $stopOnEmpty; + public $stopOnEmpty = false; + public $cfgFileExists; public function load() { $f = __DIR__ . '/../../data/bdrem.config.php'; if (file_exists($f)) { + $this->cfgFileExists = true; return $this->loadFile($f); } - throw new \Exception('No config file found'); + $this->cfgFileExists = false; } protected function loadFile($filename)