summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-02 21:45:47 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-02 21:45:47 +0200
commitfb628a79353b0333aeec776d79466630df6c9054 (patch)
tree83fbcb1d0081b45ec2287b1225acb649f6d0f93f
parented08563d93fb0514534f2712a4af8bedbe21e217 (diff)
use private appconfig because its not yet in oc7
-rw-r--r--app/news.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/news.php b/app/news.php
index ecf1a33d0..9bed18706 100644
--- a/app/news.php
+++ b/app/news.php
@@ -245,12 +245,13 @@ class News extends App {
*/
$container->registerService('AppConfig', function($c) {
// not performant but well :/
- $config = $c->query('ServerContainer')->getAppConfig();
- $installedApps = $config->getApps();
+ // $config = $c->query('ServerContainer')->getAppConfig(); oc7 only
+ $config = OC_Appconfig;
+ $installedApps = $config::getApps();
$apps = array();
foreach($installedApps as $app) {
$apps[] = array(
- $app => $config->getValue($app, 'installed_version', '0')
+ $app => $config::getValue($app, 'installed_version', '0')
);
}