From 3e3504c590e571e078479e7d621a38e04a3f447c Mon Sep 17 00:00:00 2001 From: Matheus Garcia Date: Wed, 6 Feb 2019 11:44:53 -0200 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20em=20vari=C3=A1vel=20que?= =?UTF-8?q?=20aponta=20para=20URL=20dw=20WS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- process.php | 4 ++-- return.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/process.php b/process.php index 3a54e00..58e3c37 100644 --- a/process.php +++ b/process.php @@ -40,7 +40,7 @@ $courseid = $plugin_instance->courseid; // Monta url para redirecionamento após matrícula $urlRedirect = new moodle_url('/enrol/evl/return.php', array('id' => $courseid, 'instanceid' => $instanceid)); // Monta url para matrícula -$urlEnrol = new moodle_url($CFG->emURLEVL . '/cursos/registro', +$urlEnrol = new moodle_url($CFG->emURLWS . '/cursos/registro', array( 'school' => $CFG->emSigla, 'school_course' => $courseid, @@ -48,4 +48,4 @@ $urlEnrol = new moodle_url($CFG->emURLEVL . '/cursos/registro', 'redirect' => $urlRedirect->out(false) // false evita codificar '&' na url de redirecionamento ) ); -redirect($urlEnrol); \ No newline at end of file +redirect($urlEnrol); diff --git a/return.php b/return.php index 2eaded6..33262b6 100644 --- a/return.php +++ b/return.php @@ -84,7 +84,7 @@ if( matriculadoNaEvl($key, $course->id, 'ILB') ) { // FIXME obter código da esc * Verifica se usuário está matriculado em determinado curso na EVL */ function matriculadoNaEvl($chaveUsuario, $curso, $escola) { - $uri = $CFG->emURLEVL . '/cursos/confirmar'; + $uri = $CFG->emURLWS . '/cursos/confirmar'; $array = array( "key" => $chaveUsuario,