diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-20 11:14:30 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-20 11:14:30 +0200 |
commit | a2674b2b303c6b2a5935638af04f0e4a61afae24 (patch) | |
tree | 3d067ca9f3a187b99a9f5184586a8dd8653e043b /lib/base.php | |
parent | b919ae96f093a927e83f9f114a34400a4095ea5e (diff) | |
download | nextcloud-server-a2674b2b303c6b2a5935638af04f0e4a61afae24.tar.gz nextcloud-server-a2674b2b303c6b2a5935638af04f0e4a61afae24.zip |
Additions to update page
Apps to update and to disable will always be shown.
Main title changes only when apps need updated, not core.
Added bullet style.
Exclude incompatible apps from updated apps list.
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/base.php b/lib/base.php index 0a0d66aaf25..860260576dc 100644 --- a/lib/base.php +++ b/lib/base.php @@ -376,14 +376,15 @@ class OC { // if not a core upgrade, then it's apps upgrade if (version_compare($currentVersion, $installedVersion, '=')) { - $tmpl->assign('appsToUpgrade', $appManager->getAppsNeedingUpgrade()); $tmpl->assign('isAppsOnlyUpgrade', true); } else { - // get third party apps - $version = OC_Util::getVersion(); - $tmpl->assign('appList', $appManager->getIncompatibleApps($version)); $tmpl->assign('isAppsOnlyUpgrade', false); } + + // get third party apps + $ocVersion = OC_Util::getVersion(); + $tmpl->assign('appsToUpgrade', $appManager->getAppsNeedingUpgrade($ocVersion)); + $tmpl->assign('incompatibleAppsList', $appManager->getIncompatibleApps($ocVersion)); $tmpl->assign('productName', 'ownCloud'); // for now $tmpl->assign('oldTheme', $oldTheme); $tmpl->printPage(); |