Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
poleumdev authored May 26, 2021
1 parent 324fd51 commit 77f4f6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions client/testmethode.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
/*
* Imports of class files.
*/
$toolpath = dirname(__FILE__);

$username = optional_param('username', 'rv0', PARAM_ALPHANUM);

$context = context_system::instance();
Expand All @@ -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");
Expand Down
3 changes: 1 addition & 2 deletions client/testws.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 77f4f6d

Please sign in to comment.