Skip to content

Commit

Permalink
MDL-23967 admin/cron.php - warn about use on CLI
Browse files Browse the repository at this point in the history
Admins now need to use the explicit CLI script
  • Loading branch information
danpoltawski authored and stronk7 committed Aug 10, 2011
1 parent c8e7fdd commit 3728b69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions admin/cron.php
Expand Up @@ -36,6 +36,12 @@
* @license http://www.gnu.org/copyleft/gpl.html 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");
exit(1);
}

// 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);
Expand Down

0 comments on commit 3728b69

Please sign in to comment.