diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-07 14:55:23 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-07 15:03:55 +0100 |
commit | 83855c073bda187084ad644541f5c46465f16b8e (patch) | |
tree | d826c3994c907469613493ab6209217246afe01c /settings | |
parent | 336fe868b2ee3a4105b93b71a1e739c9e412237b (diff) | |
download | nextcloud-server-83855c073bda187084ad644541f5c46465f16b8e.tar.gz nextcloud-server-83855c073bda187084ad644541f5c46465f16b8e.zip |
Add a warning on the apps list when the version is missing
Diffstat (limited to 'settings')
-rw-r--r-- | settings/controller/appsettingscontroller.php | 3 | ||||
-rw-r--r-- | settings/templates/apps.php | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/settings/controller/appsettingscontroller.php b/settings/controller/appsettingscontroller.php index 765fe2d2850..79b7589027b 100644 --- a/settings/controller/appsettingscontroller.php +++ b/settings/controller/appsettingscontroller.php @@ -296,6 +296,9 @@ class AppSettingsController extends Controller { $app['canInstall'] = empty($missing); $app['missingDependencies'] = $missing; + $app['missingMinOwnCloudVersion'] = !isset($app['dependencies']['owncloud']['@attributes']['min-version']); + $app['missingMaxOwnCloudVersion'] = !isset($app['dependencies']['owncloud']['@attributes']['max-version']); + return $app; }, $apps); diff --git a/settings/templates/apps.php b/settings/templates/apps.php index 7213d552c08..94efd76c7c2 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -97,6 +97,18 @@ script( <div class="app-description-toggle-show"><?php p($l->t("Show description …"));?></div> <div class="app-description-toggle-hide hidden"><?php p($l->t("Hide description …"));?></div> + {{#if missingMinOwnCloudVersion}} + <div class="app-dependencies"> + <p><?php p($l->t('This app has no minimum ownCloud version assigned. This will be an error in ownCloud 11 and later.')); ?></p> + </div> + {{else}} + {{#if missingMaxOwnCloudVersion}} + <div class="app-dependencies"> + <p><?php p($l->t('This app has no maximum ownCloud version assigned. This will be an error in ownCloud 11 and later.')); ?></p> + </div> + {{/if}} + {{/if}} + {{#unless canInstall}} <div class="app-dependencies"> <p><?php p($l->t('This app cannot be installed because the following dependencies are not fulfilled:')); ?></p> |