Skip to content

Commit

Permalink
Display version from composer.json even if not intstalled
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascube committed Nov 28, 2013
1 parent d5c3815 commit ce6050c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions program/lib/Roundcube/rcube_plugin_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ public function get_info($plugin_name)
$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;
Expand Down

0 comments on commit ce6050c

Please sign in to comment.