summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-01-18 11:50:17 +0000
committerthomascube <thomas@roundcube.net>2012-01-18 11:50:17 +0000
commit50d6e918e147b12a547d01b877c98b558d6cfd66 (patch)
tree40e27a6ded3cce81029c9bc0cd18c97824634c4d /program/steps
parenta49a00fd30bda2fc67d74d515bff9bf2d30df089 (diff)
Use <uri> value from package.xml to build download links in about screen; show links in default style
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/settings/about.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/settings/about.inc b/program/steps/settings/about.inc
index 5351dd89e..a17b3c09c 100644
--- a/program/steps/settings/about.inc
+++ b/program/steps/settings/about.inc
@@ -64,7 +64,7 @@ function rcmail_plugins_list($attrib)
$table->add_header('source', rcube_label('source'));
foreach ($plugins as $name => $data) {
- $uri = $data['srcuri'];
+ $uri = $data['srcuri'] ? $data['srcuri'] : $data['uri'];
if ($uri && stripos($uri, 'http') !== 0) {
$uri = 'http://' . $uri;
}
@@ -90,6 +90,7 @@ function rcube_plugin_data($name, &$plugins = array())
'license' => 'string(//rc:package/rc:license)',
'license_uri' => 'string(//rc:package/rc:license/@uri)',
'srcuri' => 'string(//rc:package/rc:srcuri)',
+ 'uri' => 'string(//rc:package/rc:uri)',
);
$package = INSTALL_PATH . "/plugins/$name/package.xml";