From 43df822129a8f9e4cb5277e872b7ee4bebf5f6cf Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 5 May 2014 14:16:00 +0200 Subject: use proper config array key to not break when registering hooks or jobs, #522 --- config/appconfig.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') 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); -- cgit v1.2.3