From fb628a79353b0333aeec776d79466630df6c9054 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 2 May 2014 21:45:47 +0200 Subject: use private appconfig because its not yet in oc7 --- app/news.php | 7 ++++--- 1 file 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') ); } -- cgit v1.2.3