diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2014-05-29 21:28:47 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2014-05-29 21:28:47 +0200 |
commit | 705242d3903034c148b4ad7c717d52be592f3e6d (patch) | |
tree | f4d1f1fe7230f9c8fb5e5747aa1719c9d377d8a4 /lib/base.php | |
parent | 32a50563d3a93c304d7879212f349e6930d5b5d6 (diff) | |
parent | 7e055a94044100c17ffa103c56e2d238f9b4e6ac (diff) | |
download | nextcloud-server-705242d3903034c148b4ad7c717d52be592f3e6d.tar.gz nextcloud-server-705242d3903034c148b4ad7c717d52be592f3e6d.zip |
Merge pull request #8727 from owncloud/upgrade-overview
Added update overview page
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 63df94319f6..882b587a6fd 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; + } + } + $tmpl->assign('appList', $incompatibleApps); + $tmpl->assign('productName', 'ownCloud'); // for now + $tmpl->assign('oldTheme', $oldTheme); $tmpl->printPage(); exit(); } else { |