From a3bb66e4e81817737ce02ce8f3d0cff5c32fdae9 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 20 Sep 2008 20:22:25 +0000 Subject: #259623 by dopry and Damien Tournoud: Convert includes/requires to use absolute paths. --- cron.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cron.php') diff --git a/cron.php b/cron.php index 063b1feef..553830d88 100644 --- a/cron.php +++ b/cron.php @@ -6,7 +6,12 @@ * Handles incoming requests to fire off regularly-scheduled tasks (cron jobs). */ -include_once './includes/bootstrap.inc'; +/** + * Root directory of Drupal installation. + */ +define('DRUPAL_ROOT', dirname(realpath(__FILE__))); + +include_once DRUPAL_ROOT . '/includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); if (isset($_GET['cron_key']) && variable_get('cron_key', 'drupal') == $_GET['cron_key']) { drupal_cron_run(); -- cgit v1.2.3