From 7f55bb0f8be5ee34cd039001438e303c6c8f2102 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sun, 1 Feb 2015 09:28:54 +0100 Subject: try to fix configpath --- appinfo/application.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/appinfo/application.php b/appinfo/application.php index bb5c55816..11b53897c 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -86,9 +86,13 @@ class Application extends App { /** * Utility */ + $container->registerService('ConfigPath', function($c) { + return '/news/config'; + }); + $container->registerService('ConfigView', function($c) { $fs = $c->query('OCP\Files\IRootFolder'); - $path = '/news/config'; + $path = $c->query('ConfigPath'); if ($fs->nodeExists($path)) { return $fs->get($path); } else { -- cgit v1.2.3