summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_plugin.php
diff options
context:
space:
mode:
authorThomas B. <thomas@roundcube.net>2014-08-21 19:50:53 +0200
committerThomas B. <thomas@roundcube.net>2014-08-21 19:50:53 +0200
commit827b1dd459e4e90797ed6fe3187dc6de47cf8fec (patch)
tree37693f8d491935cf4006f5892c4849b729822770 /program/lib/Roundcube/rcube_plugin.php
parentfe03a9074d87fd25985aa2e1b138a6b69fdda290 (diff)
parent4eee212883b34e1ca7cfb9466580ff20dca5c979 (diff)
Merge pull request #212 from JohnDoh/patch-1
add include_plugin function for optional plugins
Diffstat (limited to 'program/lib/Roundcube/rcube_plugin.php')
-rw-r--r--program/lib/Roundcube/rcube_plugin.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_plugin.php b/program/lib/Roundcube/rcube_plugin.php
index cc7c7977f..9c7a9c2dc 100644
--- a/program/lib/Roundcube/rcube_plugin.php
+++ b/program/lib/Roundcube/rcube_plugin.php
@@ -121,6 +121,17 @@ abstract class rcube_plugin
}
/**
+ * Attempt to load the given plugin which is optional for the current plugin
+ *
+ * @param string Plugin name
+ * @return boolean True on success, false on failure
+ */
+ public function include_plugin($plugin_name)
+ {
+ return $this->api->load_plugin($plugin_name, true, false);
+ }
+
+ /**
* Load local config file from plugins directory.
* The loaded values are patched over the global configuration.
*