Skip to content

Commit 02cb4e6

Browse files
author
dustinhuynh
committed
Fix up ci.yml WR-468063
1 parent a1f17bb commit 02cb4e6

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ on: [push, pull_request]
55

66
jobs:
77
ci:
8-
uses: catalyst/catalyst-moodle-workflows/.github/workflows/ci.yml@main
8+
uses: catalyst/catalyst-moodle-workflows/.github/workflows/ci.yml@main
9+
secrets:
10+
moodle_org_token: ${{ secrets.MOODLE_ORG_TOKEN }}

externallib.php

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,26 @@
2424

2525
defined('MOODLE_INTERNAL') || die();
2626

27-
use core_external\external_api;
28-
use core_external\external_function_parameters;
29-
use core_external\external_single_structure;
30-
use core_external\external_value;
31-
3227
require_once($CFG->dirroot . "/auth/userkey/auth.php");
33-
28+
require_once($CFG->libdir . '/externallib.php'); // <-- required
3429
/**
3530
* Webservices for auth_userkey.
3631
*
3732
* @package auth_userkey
3833
* @copyright 2016 Dmitrii Metelkin (dmitriim@catalyst-au.net)
3934
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
4035
*/
41-
class auth_userkey_external extends external_api {
36+
class auth_userkey_external extends \external_api {
4237

4338
/**
4439
* Return request_login_url webservice parameters.
4540
*
4641
* @return \external_function_parameters
4742
*/
4843
public static function request_login_url_parameters() {
49-
return new external_function_parameters(
44+
return new \external_function_parameters(
5045
array(
51-
'user' => new external_single_structure(
46+
'user' => new \external_single_structure(
5247
get_auth_plugin('userkey')->get_request_login_url_user_parameters()
5348
)
5449
)
@@ -88,9 +83,9 @@ public static function request_login_url($user) {
8883
* @return \external_single_structure
8984
*/
9085
public static function request_login_url_returns() {
91-
return new external_single_structure(
86+
return new \external_single_structure(
9287
array(
93-
'loginurl' => new external_value(PARAM_RAW, 'Login URL for a user to log in'),
88+
'loginurl' => new \external_value(PARAM_RAW, 'Login URL for a user to log in'),
9489
)
9590
);
9691
}

version.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
defined('MOODLE_INTERNAL') || die;
2626

27-
$plugin->version = 2022081901; // The current plugin version (Date: YYYYMMDDXX).
28-
$plugin->release = 2022081901; // Match release exactly to version.
27+
$plugin->version = 2022081902; // The current plugin version (Date: YYYYMMDDXX).
28+
$plugin->release = 2022081902; // Match release exactly to version.
2929
$plugin->requires = 2017051500; // Requires Moodle 3.3 version.
3030
$plugin->component = 'auth_userkey'; // Full name of the plugin (used for diagnostics).
3131
$plugin->maturity = MATURITY_STABLE;
32-
$plugin->supported = [33, 401]; // A range of branch numbers of supported moodle versions.
32+
$plugin->supported = [33, 405]; // A range of branch numbers of supported moodle versions.

0 commit comments

Comments
 (0)