git.cweiske.de
/
bdrem.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96ad995
)
Make "readme" and "config" commands work again
author
Christian Weiske
<
[email protected]
>
Wed, 18 Mar 2015 20:05:40 +0000
(21:05 +0100)
committer
Christian Weiske
<
[email protected]
>
Wed, 18 Mar 2015 20:05:40 +0000
(21:05 +0100)
src/bdrem/UserInterface.php
patch
|
blob
|
history
diff --git
a/src/bdrem/UserInterface.php
b/src/bdrem/UserInterface.php
index ef18493d99e6c3fa8894a454763419eddc1aec92..b0b21ccff6249a3b7b523d1a8ba398bda52e6fda 100644
(file)
--- 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,