MDL-86656 task: remove spurious mtrace parameters in calling code.

Co-authored-by: Jason Lees <[email protected]>
This commit is contained in:
Paul Holden
2025-11-11 12:48:06 +00:00
co-authored by Jason Lees
parent a331b32bef
commit 0d7e792fda
2 changed files with 3 additions and 13 deletions
+1 -11
View File
@@ -14,18 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Sync users task
* @package auth_db
* @author Guy Thomas <[email protected]>
* @copyright Copyright (c) 2017 Blackboard Inc.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace auth_db\task;
defined('MOODLE_INTERNAL') || die();
/**
* Sync users task class
* @package auth_db
@@ -49,7 +39,7 @@ class sync_users extends \core\task\scheduled_task {
*/
public function execute() {
if (!is_enabled_auth('db')) {
mtrace('auth_db plugin is disabled, synchronisation stopped', 2);
mtrace('auth_db plugin is disabled, synchronisation stopped');
return;
}
+2 -2
View File
@@ -619,10 +619,10 @@ function enrol_meta_sync($courseid = NULL, $verbose = false) {
$affectedusers = groups_sync_with_enrolment('meta', $courseid);
if ($verbose) {
foreach ($affectedusers['removed'] as $gm) {
mtrace("removing user from group: $gm->userid ==> $gm->courseid - $gm->groupname", 1);
mtrace("removing user from group: $gm->userid ==> $gm->courseid - $gm->groupname");
}
foreach ($affectedusers['added'] as $ue) {
mtrace("adding user to group: $ue->userid ==> $ue->courseid - $ue->groupname", 1);
mtrace("adding user to group: $ue->userid ==> $ue->courseid - $ue->groupname");
}
}