Thomas Bruederli
2014-04-02 509a6bc36882a9ed176ccc67ad0fc414093a44d9
Allow to force-load plugins which have been loaded but not initialized before
1 files modified
4 ■■■ changed files
program/lib/Roundcube/rcube_plugin_api.php 4 ●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_plugin_api.php
@@ -182,7 +182,7 @@
        }
        // plugin already loaded
        if ($this->plugins[$plugin_name] || class_exists($plugin_name, false)) {
        if ($this->plugins[$plugin_name]) {
            return true;
        }
@@ -190,7 +190,9 @@
            . DIRECTORY_SEPARATOR . $plugin_name . '.php';
        if (file_exists($fn)) {
            if (!class_exists($plugin_name, false)) {
            include $fn;
            }
            // instantiate class if exists
            if (class_exists($plugin_name, false)) {