MDL-59992 webservice: fix debugging message event context already set
authorMarina Glancy <marina@moodle.com>
Thu, 31 Aug 2017 04:13:15 +0000 (12:13 +0800)
committerMarina Glancy <marina@moodle.com>
Thu, 31 Aug 2017 04:13:15 +0000 (12:13 +0800)
webservice/lib.php

index 2117e8b..2b0098c 100644 (file)
@@ -913,7 +913,6 @@ abstract class webservice_server implements webservice_server_interface {
         }
 
         $loginfaileddefaultparams = array(
-            'context' => context_system::instance(),
             'other' => array(
                 'method' => $this->authmethod,
                 'reason' => null
@@ -1062,7 +1061,6 @@ abstract class webservice_server implements webservice_server_interface {
         global $DB;
 
         $loginfaileddefaultparams = array(
-            'context' => context_system::instance(),
             'other' => array(
                 'method' => $this->authmethod,
                 'reason' => null