Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Plugin API: added 'ready' hook (#1488073)

  • Loading branch information...
commit 370302171330854b9e25556779abcaf965e4e15c 1 parent fb40f37
@alecpl alecpl authored
Showing with 7 additions and 0 deletions.
  1. +1 −0  CHANGELOG
  2. +6 −0 index.php
View
1  CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
+- Plugin API: added 'ready' hook (#1488073)
- Ignore DSN request when it isn't supported by SMTP server (#1487800)
- Make sure LDAP name fields aren't arrays (#1488108)
- Fixed imap test to non-default port when using ssl (#1488118)
View
6 index.php
@@ -214,6 +214,12 @@
}
}
+// we're ready, user is authenticated and the request is safe
+$plugin = $RCMAIL->plugins->exec_hook('ready', array('task' => $RCMAIL->task, 'action' => $RCMAIL->action));
+$RCMAIL->set_task($plugin['task']);
+$RCMAIL->action = $plugin['action'];
+
+
// handle special actions
if ($RCMAIL->action == 'keep-alive') {
$OUTPUT->reset();
Please sign in to comment.
Something went wrong with that request. Please try again.