diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-03 06:40:06 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-03 06:40:06 +0000 |
| commit | d6d8a0feaca6c856d4ae549c9f0770aa5de9edcb (patch) | |
| tree | b57c4079be6c9fe168b67f912883b031b81b9586 /roundcubemail/index.php | |
| parent | 603ac8201ba0c4870cce997735a147bfb50bdc59 (diff) | |
Allow plugins to register their own tasks
git-svn-id: https://svn.roundcube.net/trunk@3700 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/index.php')
| -rw-r--r-- | roundcubemail/index.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php index 43cf7c413..a226b54c9 100644 --- a/roundcubemail/index.php +++ b/roundcubemail/index.php @@ -242,9 +242,13 @@ $redirects = 0; $incstep = null; while ($redirects < 5) { $stepfile = !empty($action_map[$RCMAIL->task][$RCMAIL->action]) ? $action_map[$RCMAIL->task][$RCMAIL->action] : strtr($RCMAIL->action, '-', '_') . '.inc'; - + // execute a plugin action - if (preg_match('/^plugin\./', $RCMAIL->action)) { + if ($RCMAIL->plugins->is_plugin_task($RCMAIL->task)) { + $RCMAIL->plugins->exec_action($RCMAIL->task.'.'.$RCMAIL->action); + break; + } + else if (preg_match('/^plugin\./', $RCMAIL->action)) { $RCMAIL->plugins->exec_action($RCMAIL->action); break; } |
