diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-06-07 15:36:30 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-06-07 15:36:30 +1000 |
| commit | 08fa8246bd6e0f6b4cb0880c11ece10682dad846 (patch) | |
| tree | bcc6c7ce97a89a36fd3df4e372878833f5ec2f17 | |
| parent | b0a44e1a5cdee1c7f726cd4816289d3a58d45729 (diff) | |
fix working directory
| -rw-r--r-- | templates/themes/rrdtool/cron.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <?php
$_SERVER = Array('REQUEST_URI' => '', 'HTTP_HOST' => '', 'SCRIPT_FILENAME' => '');
- chdir('../../../');
+ chdir(str_replace('\\', '/', dirname(__FILE__)) . '/../../../');
require 'inc/functions.php';
require 'inc/display.php';
|
