From 08fa8246bd6e0f6b4cb0880c11ece10682dad846 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 7 Jun 2011 15:36:30 +1000 Subject: [PATCH] fix working directory --- templates/themes/rrdtool/cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/themes/rrdtool/cron.php b/templates/themes/rrdtool/cron.php index 29afce54..c040c705 100644 --- a/templates/themes/rrdtool/cron.php +++ b/templates/themes/rrdtool/cron.php @@ -1,6 +1,6 @@ '', 'HTTP_HOST' => '', 'SCRIPT_FILENAME' => ''); - chdir('../../../'); + chdir(str_replace('\\', '/', dirname(__FILE__)) . '/../../../'); require 'inc/functions.php'; require 'inc/display.php';