From b23f2171458f96fb34cd5a6f2e503a13efbd327b Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 18 Nov 2014 15:54:05 +0800 Subject: [PATCH] MDL-46534 course: Remove calls to error_log in activity duplication --- course/lib.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/course/lib.php b/course/lib.php index 3dc5219f98f..51b042f4aaf 100644 --- a/course/lib.php +++ b/course/lib.php @@ -3472,16 +3472,13 @@ function mod_duplicate_activity($course, $cm, $sr = null) { $rc->execute_plan(); - // now a bit hacky part follows - we try to get the cmid of the newly - // restored copy of the module + // Now a bit hacky part follows - we try to get the cmid of the newly + // restored copy of the module. $newcmid = null; $tasks = $rc->get_plan()->get_tasks(); foreach ($tasks as $task) { - error_log("Looking at a task"); if (is_subclass_of($task, 'restore_activity_task')) { - error_log("Looking at a restore_activity_task task"); if ($task->get_old_contextid() == $cmcontext->id) { - error_log("Contexts match"); $newcmid = $task->get_moduleid(); break; }