Thomas Bruederli
2013-10-21 f06aa8058b7e32ba32d4551074b6e0b8a300f751
program/steps/settings/about.inc
@@ -7,7 +7,10 @@
 | This file is part of the Roundcube Webmail client                     |
 | Copyright (C) 2005-2011, The Roundcube Dev Team                       |
 | Copyright (C) 2011, Kolab Systems AG                                  |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 | Licensed under the GNU General Public License version 3 or            |
 | any later version with exceptions for skins & plugins.                |
 | See the README file for a full license statement.                     |
 |                                                                       |
 | PURPOSE:                                                              |
 |   Display license information about program and enabled plugins       |
@@ -24,9 +27,9 @@
function rcmail_supportlink($attrib)
{
  global $RCMAIL;
  if ($url = $RCMAIL->config->get('support_url')) {
    $label = $attrub['label'] ? $attrub['label'] : 'support';
    $label = $attrib['label'] ? $attrib['label'] : 'support';
    $attrib['href'] = $url;
    return html::a($attrib, rcube_label($label));
  }
@@ -61,11 +64,11 @@
  $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;
    }
    $table->add_row();
    $table->add('name', Q($data['name'] ? $data['name'] : $name));
    $table->add('version', Q($data['version']));
@@ -87,6 +90,7 @@
    '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";