diff --git a/client/testmethode.php b/client/testmethode.php index eb906ed..6d787f5 100644 --- a/client/testmethode.php +++ b/client/testmethode.php @@ -31,8 +31,6 @@ /* * Imports of class files. */ -$toolpath = dirname(__FILE__); - $username = optional_param('username', 'rv0', PARAM_ALPHANUM); $context = context_system::instance(); @@ -41,7 +39,7 @@ require_login(); // Always create trainings. -$urlact = new moodle_url($toolpath . '/testmethode.php', ['username' => $username]); +$urlact = new moodle_url('/local/wsattestoodle/client/testmethode.php', ['username' => $username]); $PAGE->set_url($urlact); $PAGE->set_title("TEST"); diff --git a/client/testws.php b/client/testws.php index ce62ef8..dea6576 100644 --- a/client/testws.php +++ b/client/testws.php @@ -45,11 +45,10 @@ $resp = xmlrpc_decode($curl->post($serverurl, $post)); } -$toolpath = dirname(__FILE__); $context = context_system::instance(); $PAGE->set_context($context); require_login(); -$urlact = new moodle_url($toolpath . '/testmethode.php', []); +$urlact = new moodle_url('/local/wsattestoodle/client/testmethode.php', []); $PAGE->set_url($urlact); $PAGE->set_title("TEST"); diff --git a/version.php b/version.php index 577ceb4..3c3da2b 100644 --- a/version.php +++ b/version.php @@ -26,7 +26,7 @@ $plugin->component = 'local_wsattestoodle'; $plugin->release = '0.1.1'; -$plugin->version = 2019111501; +$plugin->version = 2021052101; $plugin->requires = 2017051500; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = [