summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-11-12 14:30:19 +0100
committerAleksander Machniak <alec@alec.pl>2012-11-12 14:30:19 +0100
commit92eb10e7732716beec8b227693d62cb9a79b9db6 (patch)
tree51a9fe8fba9c7fa984c50bef5866a0629df8b20b /program
parent7da99712d2ba25ba1e097650f3dbd7f8f49db645 (diff)
Don't throw error when plugin doesn't register 'refresh' action handler
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_plugin_api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_plugin_api.php b/program/include/rcube_plugin_api.php
index 107c81026..c473b0b17 100644
--- a/program/include/rcube_plugin_api.php
+++ b/program/include/rcube_plugin_api.php
@@ -327,7 +327,7 @@ class rcube_plugin_api
if (isset($this->actions[$action])) {
call_user_func($this->actions[$action]);
}
- else {
+ else if (rcube::get_instance()->action != 'refresh') {
rcube::raise_error(array('code' => 524, 'type' => 'php',
'file' => __FILE__, 'line' => __LINE__,
'message' => "No handler found for action $action"), true, true);