From: Christian Weiske Date: Wed, 18 Mar 2015 20:05:40 +0000 (+0100) Subject: Make "readme" and "config" commands work again X-Git-Tag: v0.6.0~2 X-Git-Url: https://git.cweiske.de/bdrem.git/commitdiff_plain/0036cdb88b841e7bdeff6e08108c4f2adf03674f?hp=96ad995ae69cf445542ed19d64e84b19c9623e35 Make "readme" and "config" commands work again --- diff --git a/src/bdrem/UserInterface.php b/src/bdrem/UserInterface.php index ef18493..b0b21cc 100644 --- a/src/bdrem/UserInterface.php +++ b/src/bdrem/UserInterface.php @@ -45,6 +45,9 @@ abstract class UserInterface $res = $this->parseParameters($parser); $this->config->load(); + setlocale(LC_TIME, $this->config->locale); + $this->handleCommands($res); + if (!$this->config->cfgFileExists) { throw new \Exception( "No config file found. Looked at the following places:\n" @@ -52,9 +55,6 @@ abstract class UserInterface ); } - setlocale(LC_TIME, $this->config->locale); - $this->handleCommands($res); - $source = $this->config->loadSource(); $arEvents = $source->getEvents( $this->config->date,