Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
fix config path
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Posselt committed Feb 1, 2015
1 parent 1ba0e29 commit cf2f890
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions appinfo/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ public function __construct(array $urlParams=[]) {
* Utility
*/
$container->registerService('ConfigPath', function($c) {
return 'news/config/';
return 'config.ini';
});

$container->registerService('ConfigView', function($c) {
$fs = $c->query('OCP\Files\IRootFolder');
$path = $c->query('ConfigPath');
$path = 'news/config';
if ($fs->nodeExists($path)) {
return $fs->get($path);
} else {
Expand All @@ -107,7 +107,7 @@ public function __construct(array $urlParams=[]) {
$c->query('OCP\ILogger'),
$c->query('LoggerParameters')
);
$config->read('config.ini', true);
$config->read($c->query('ConfigPath'), true);
return $config;
});

Expand Down

0 comments on commit cf2f890

Please sign in to comment.