From b8b737768aa96deeffbb193682c1b45f517c0636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=A4nzer?= Date: Tue, 31 Jan 2012 00:15:17 +0100 Subject: bug 1003: Make scripts resilient against working directory changes and make the fail hard if the include fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Tänzer --- scripts/cron/warning.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/cron/warning.php') diff --git a/scripts/cron/warning.php b/scripts/cron/warning.php index b578c09..18e89da 100755 --- a/scripts/cron/warning.php +++ b/scripts/cron/warning.php @@ -17,7 +17,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ - include_once("/home/cacert/www/includes/mysql.php"); + require_once(dirname(__FILE__).'/../../includes/mysql.php'); $days = array("1" => "3", "15" => "2", "30" => "1", "45" => "0"); -- cgit v1.2.1