Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3fdc622
)
MDL-23967 admin/cron.php - warn about use on CLI
author
Dan Poltawski
<dan.poltawski@luns.net.uk>
Sat, 6 Aug 2011 22:38:49 +0000
(23:38 +0100)
committer
Dan Poltawski
<dan.poltawski@luns.net.uk>
Sat, 6 Aug 2011 22:38:49 +0000
(23:38 +0100)
Admins now need to use the explicit CLI script
admin/cron.php
patch
|
blob
|
blame
|
history
diff --git
a/admin/cron.php
b/admin/cron.php
index
e131e9b
..
5b473a3
100644
(file)
--- a/
admin/cron.php
+++ b/
admin/cron.php
@@
-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);