Thomas Bruederli
2014-12-29 bca7dc68e9f73e863e3a65173a8883c99dc09e3a
program/lib/Roundcube/rcube_plugin_api.php
@@ -188,8 +188,7 @@
            return true;
        }
        $fn = $plugins_dir . DIRECTORY_SEPARATOR . $plugin_name
            . DIRECTORY_SEPARATOR . $plugin_name . '.php';
        $fn = "$plugins_dir/$plugin_name/$plugin_name.php";
        if (is_readable($fn)) {
            if (!class_exists($plugin_name, false)) {
@@ -253,6 +252,7 @@
        'GPLv2'      => 'http://www.gnu.org/licenses/gpl-2.0.html',
        'GPL-2.0'    => 'http://www.gnu.org/licenses/gpl-2.0.html',
        'GPLv3'      => 'http://www.gnu.org/licenses/gpl-3.0.html',
        'GPLv3+'     => 'http://www.gnu.org/licenses/gpl-3.0.html',
        'GPL-3.0'    => 'http://www.gnu.org/licenses/gpl-3.0.html',
        'GPL-3.0+'   => 'http://www.gnu.org/licenses/gpl.html',
        'GPL-2.0+'   => 'http://www.gnu.org/licenses/gpl.html',
@@ -279,7 +279,7 @@
      );
      $dir = dir($this->dir);
      $fn = unslashify($dir->path) . DIRECTORY_SEPARATOR . $plugin_name . DIRECTORY_SEPARATOR . $plugin_name . '.php';
      $fn = unslashify($dir->path) . "/$plugin_name/$plugin_name.php";
      $info = false;
      if (!class_exists($plugin_name, false)) {
@@ -627,6 +627,16 @@
    }
    /**
     * Returns loaded plugin
     *
     * @return rcube_plugin Plugin instance
     */
    public function get_plugin($name)
    {
        return $this->plugins[$name];
    }
    /**
     * Callback for template_container hooks
     *
     * @param array $attrib