aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2015-03-18 21:05:40 +0100
committerChristian Weiske <cweiske@cweiske.de>2015-03-18 21:05:40 +0100
commit0036cdb88b841e7bdeff6e08108c4f2adf03674f (patch)
tree8940ef9962729bf6a4de2c224895c0ae0552f239
parent96ad995ae69cf445542ed19d64e84b19c9623e35 (diff)
downloadbdrem-0036cdb88b841e7bdeff6e08108c4f2adf03674f.tar.gz
bdrem-0036cdb88b841e7bdeff6e08108c4f2adf03674f.zip
Make "readme" and "config" commands work again
-rw-r--r--src/bdrem/UserInterface.php6
1 files changed, 3 insertions, 3 deletions
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,