From 564a2ba793b8d98abc6b7387f9fe1db869fce1b6 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 22 Jul 2009 05:15:36 -0400
Subject: [PATCH] - Help plugin - support 'dummy' task (for plugins)
---
index.php | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/index.php b/index.php
index c5a1049..a6a7d7d 100644
--- a/index.php
+++ b/index.php
@@ -222,7 +222,8 @@
);
// 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 @@
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++;
}
--
Gitblit v1.9.1