summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-05-26 18:43:26 +0200
committerVincent Petry <pvince81@owncloud.com>2014-05-27 14:53:08 +0200
commit146583a98d632fceaff1642cd9bc3b566c51615a (patch)
treec79d45cf52d7ceb146ee1cc3099785cff49a6bde /lib/base.php
parenta9661962fef21ef7a6aaf9e14ffc9c02e22c3d72 (diff)
downloadnextcloud-server-146583a98d632fceaff1642cd9bc3b566c51615a.tar.gz
nextcloud-server-146583a98d632fceaff1642cd9bc3b566c51615a.zip
Added update overview page
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index a022b9d005b..455e8ad4613 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -284,11 +284,26 @@ class OC {
public static function checkUpgrade($showTemplate = true) {
if (self::needUpgrade()) {
if ($showTemplate && !OC_Config::getValue('maintenance', false)) {
+ $version = OC_Util::getVersion();
+ $oldTheme = OC_Config::getValue('theme');
OC_Config::setValue('theme', '');
OC_Util::addScript('config'); // needed for web root
OC_Util::addScript('update');
$tmpl = new OC_Template('', 'update.admin', 'guest');
$tmpl->assign('version', OC_Util::getVersionString());
+
+ // get third party apps
+ $apps = OC_App::getEnabledApps();
+ $incompatibleApps = array();
+ foreach ($apps as $appId) {
+ $info = OC_App::getAppInfo($appId);
+ if(!OC_App::isAppCompatible($version, $info)) {
+ $incompatibleApps[] = $info['name'];
+ }
+ }
+ $tmpl->assign('appList', $incompatibleApps);
+ $tmpl->assign('productName', 'ownCloud'); // for now
+ $tmpl->assign('oldTheme', $oldTheme);
$tmpl->printPage();
exit();
} else {