summaryrefslogtreecommitdiff
path: root/roundcubemail/index.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-07-22 09:15:36 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-07-22 09:15:36 +0000
commit3e168e73520ee3e5d408743a5c908789ce082244 (patch)
tree083a7d4020f1c7796336dd2694056af39b977ecf /roundcubemail/index.php
parent11e773a035417cd40a4a03ff6c9286d2d1561099 (diff)
- Help plugin
- support 'dummy' task (for plugins) git-svn-id: https://svn.roundcube.net/trunk@2783 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/index.php')
-rw-r--r--roundcubemail/index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php
index c5a1049e9..a6a7d7dba 100644
--- a/roundcubemail/index.php
+++ b/roundcubemail/index.php
@@ -222,7 +222,8 @@ $action_map = array(
);
// include task specific functions
-include_once 'program/steps/'.$RCMAIL->task.'/func.inc';
+if (is_file($incfile = 'program/steps/'.$RCMAIL->task.'/func.inc'))
+ include_once($incfile);
// allow 5 "redirects" to another action
$redirects = 0; $incstep = null;
@@ -236,7 +237,7 @@ while ($redirects < 5) {
break;
}
// try to include the step file
- else if (is_file(($incfile = 'program/steps/'.$RCMAIL->task.'/'.$stepfile))) {
+ else if (is_file($incfile = 'program/steps/'.$RCMAIL->task.'/'.$stepfile)) {
include($incfile);
$redirects++;
}