mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
Removed some logging
This commit is contained in:
parent
a634339f4e
commit
6c19f34bf8
@ -23,7 +23,6 @@
|
||||
}
|
||||
|
||||
if ($p <> $CFG->cronpassword) {
|
||||
add_to_log("Error: bad cron password!");
|
||||
echo "Error: bad password.\n";
|
||||
die;
|
||||
}
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
if ($form->id) {
|
||||
if (update_record("course", $form)) {
|
||||
add_to_log("Updated site settings", $course->id);
|
||||
redirect("$CFG->wwwroot/admin/", "Changes saved");
|
||||
} else {
|
||||
error("Serious Error! Could not update the course record! (id = $form->id)");
|
||||
@ -27,7 +26,6 @@
|
||||
if ($newid = insert_record("course", $form)) {
|
||||
$cat->name = "General";
|
||||
if (insert_record("course_categories", $cat)) {
|
||||
add_to_log("Inserted a new course # $newid", $newid);
|
||||
redirect("$CFG->wwwroot/admin/", "Changes saved", "1");
|
||||
} else {
|
||||
error("Serious Error! Could not set up the default categories!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user