diff --git a/public/auth/db/classes/task/sync_users.php b/public/auth/db/classes/task/sync_users.php
index a7ac128425e..ca998d2bc86 100644
--- a/public/auth/db/classes/task/sync_users.php
+++ b/public/auth/db/classes/task/sync_users.php
@@ -14,18 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
-/**
- * Sync users task
- * @package auth_db
- * @author Guy Thomas
- * @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;
}
diff --git a/public/enrol/meta/locallib.php b/public/enrol/meta/locallib.php
index 5ee305f2200..5844e4b7cc8 100644
--- a/public/enrol/meta/locallib.php
+++ b/public/enrol/meta/locallib.php
@@ -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");
}
}