aboutsummaryrefslogtreecommitdiffstats
path: root/core/command/app
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-03 10:26:09 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-11 09:47:41 +0100
commit560137ca23c62c150a5037782e8076528c7726d4 (patch)
treeb45dafcb2ec5c8f5ca7ffb830c46012cbacc0b72 /core/command/app
parente271fa3ee8b1ce13940a33ec7266cee345323e2d (diff)
downloadnextcloud-server-560137ca23c62c150a5037782e8076528c7726d4.tar.gz
nextcloud-server-560137ca23c62c150a5037782e8076528c7726d4.zip
Always include the installed app version in "occ app:list"
Diffstat (limited to 'core/command/app')
-rw-r--r--core/command/app/listapps.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/command/app/listapps.php b/core/command/app/listapps.php
index dc471c5453a..e957c15547a 100644
--- a/core/command/app/listapps.php
+++ b/core/command/app/listapps.php
@@ -23,6 +23,7 @@ class ListApps extends Command {
$apps = \OC_App::getAllApps();
$enabledApps = array();
$disabledApps = array();
+ $versions = \OC_App::getAppVersions();
//sort enabled apps above disabled apps
foreach ($apps as $app) {
@@ -37,11 +38,11 @@ class ListApps extends Command {
sort($disabledApps);
$output->writeln('Enabled:');
foreach ($enabledApps as $app) {
- $output->writeln(' - ' . $app);
+ $output->writeln(' - ' . $app . (isset($versions[$app]) ? ' (' . $versions[$app] . ')' : ''));
}
$output->writeln('Disabled:');
foreach ($disabledApps as $app) {
- $output->writeln(' - ' . $app);
+ $output->writeln(' - ' . $app . (isset($versions[$app]) ? ' (' . $versions[$app] . ')' : ''));
}
}
}