summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_plugin_api.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-11-25 20:07:37 +0100
committerThomas Bruederli <thomas@roundcube.net>2012-11-25 20:07:37 +0100
commitbfc30700672fb40eb488259a70473f130d2f52ea (patch)
treea96d3bd1a088960228411be10f96c73e25d3bb38 /program/lib/Roundcube/rcube_plugin_api.php
parent5926684aab72265d243142010d9dfa8d642efdb9 (diff)
Cut dependencies to rcmail class
Diffstat (limited to 'program/lib/Roundcube/rcube_plugin_api.php')
-rw-r--r--program/lib/Roundcube/rcube_plugin_api.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_plugin_api.php b/program/lib/Roundcube/rcube_plugin_api.php
index a8f83a2b6..51cf5d246 100644
--- a/program/lib/Roundcube/rcube_plugin_api.php
+++ b/program/lib/Roundcube/rcube_plugin_api.php
@@ -370,6 +370,10 @@ class rcube_plugin_api
*/
public function register_task($task, $owner)
{
+ // tasks are irrelevant in framework mode
+ if (!class_exists('rcmail', false))
+ return true;
+
if ($task != asciiwords($task)) {
rcube::raise_error(array('code' => 526, 'type' => 'php',
'file' => __FILE__, 'line' => __LINE__,