summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-11-28 21:21:36 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-11-28 21:21:36 +0100
commitce6050cbbbd207c2899acc8df4a59553e974eda9 (patch)
tree5cd2037a152c87c1af3740b4508981d783dd48cc /program/lib
parentd5c3815c8c8489aa82555702f6ef7b60a5711f82 (diff)
Display version from composer.json even if not intstalled
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/Roundcube/rcube_plugin_api.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_plugin_api.php b/program/lib/Roundcube/rcube_plugin_api.php
index ad012552d..461c3cc07 100644
--- a/program/lib/Roundcube/rcube_plugin_api.php
+++ b/program/lib/Roundcube/rcube_plugin_api.php
@@ -284,6 +284,7 @@ class rcube_plugin_api
$composer = INSTALL_PATH . "/plugins/$plugin_name/composer.json";
if (file_exists($composer) && ($json = @json_decode(file_get_contents($composer), true))) {
list($info['vendor'], $info['name']) = explode('/', $json['name']);
+ $info['version'] = $json['version'];
$info['license'] = $json['license'];
if ($license_uri = $license_uris[$info['license']])
$info['license_uri'] = $license_uri;