summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-05 14:16:00 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-05 14:35:54 +0200
commit43df822129a8f9e4cb5277e872b7ee4bebf5f6cf (patch)
tree9cd3b8a058dfe1e6171b0e664fe6dee6da410820 /config
parent9517cdb69d16c80d437407bf13cdae3d49c5f3bb (diff)
use proper config array key to not break when registering hooks or jobs, #522
Diffstat (limited to 'config')
-rw-r--r--config/appconfig.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/appconfig.php b/config/appconfig.php
index 44932f693..0b82701b8 100644
--- a/config/appconfig.php
+++ b/config/appconfig.php
@@ -133,7 +133,7 @@ class AppConfig {
public function registerBackgroundJobs() {
// FIXME: this is temporarily static because core jobs are not public
// yet, therefore legacy code
- foreach ($config['jobs'] as $job) {
+ foreach ($this->config['jobs'] as $job) {
\OCP\Backgroundjob::addRegularTask($job, 'run');
}
}
@@ -145,7 +145,7 @@ class AppConfig {
public function registerHooks() {
// FIXME: this is temporarily static because core emitters are not future
// proof, therefore legacy code in here
- foreach ($config['hooks'] as $listen => $react) {
+ foreach ($this->config['hooks'] as $listen => $react) {
$listener = explode('::', $listen);
$reaction = explode('::', $react);