Browse files

MDL-23967 admin/cron.php - warn about use on CLI

Admins now need to use the explicit CLI script
  • Loading branch information...
danpoltawski authored and stronk7 committed Aug 6, 2011
1 parent 3b97ded commit c0d30fbb75e57ceaef8b5347a0a8fcac4b8ae47d
Showing with 6 additions and 0 deletions.
  1. +6 −0 admin/cron.php
@@ -36,6 +36,12 @@
* @license GNU GPL v3 or later
if (defined('STDIN')) {
fwrite(STDERR, "ERROR: This script no longer supports CLI, please use admin/cli/cron.php instead\n");
// This is a fake CLI script, it is a really ugly hack which emulates
// CLI via web interface, please do not use this hack elsewhere
define('CLI_SCRIPT', true);

0 comments on commit c0d30fb

Please sign in to comment.