- Modified patch #256509 by dropcube: report when an invalid cron key is used.

merge-requests/26/head
Dries Buytaert 2008-05-09 19:23:48 +00:00
parent 0aec71aa56
commit 37a36275d4
1 changed files with 4 additions and 1 deletions

View File

@ -10,4 +10,7 @@ include_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
if (isset($_GET['cron_key']) && variable_get('cron_key', 'drupal') == $_GET['cron_key']) {
drupal_cron_run();
}
}
else {
watchdog('cron', 'Cron did not run because an invalid key used.', array(), WATCHDOG_NOTICE);
}