summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-11-15 09:34:08 +0100
committerAleksander Machniak <alec@alec.pl>2012-11-15 09:34:08 +0100
commit8d54286df87e21673c05f091e38ca4de14aae326 (patch)
treed60c6d6765f5beafe4966352ebbd52e4c9c9661b /index.php
parent82d875769cade12b82aeab6723c869d87fb7a4c9 (diff)
parentf226549d4f8f258deca9e165ef857252b79d2ee0 (diff)
Merge branch 'keep-alive'
Conflicts: CHANGELOG
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/index.php b/index.php
index 0ad371a4a..aee94e971 100644
--- a/index.php
+++ b/index.php
@@ -249,7 +249,6 @@ $plugin = $RCMAIL->plugins->exec_hook('ready', array('task' => $RCMAIL->task, 'a
$RCMAIL->set_task($plugin['task']);
$RCMAIL->action = $plugin['action'];
-
// handle special actions
if ($RCMAIL->action == 'keep-alive') {
$OUTPUT->reset();
@@ -282,7 +281,8 @@ while ($redirects < 5) {
else if (($stepfile = $RCMAIL->get_action_file())
&& is_file($incfile = INSTALL_PATH . 'program/steps/'.$RCMAIL->task.'/'.$stepfile)
) {
- include $incfile;
+ // include action file only once (in case it don't exit)
+ include_once $incfile;
$redirects++;
}
else {
@@ -290,6 +290,9 @@ while ($redirects < 5) {
}
}
+if ($RCMAIL->action == 'refresh') {
+ $RCMAIL->plugins->exec_hook('refresh', array());
+}
// parse main template (default)
$OUTPUT->send($RCMAIL->task);