Skip to content

Commit

Permalink
test ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
keevan committed Jul 14, 2023
1 parent cd3f78f commit 3276585
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions classes/external/external_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,8 @@
// required to redirect sites using older versions of Moodle to the previous
// implementation.
// Once the base supported version is 4.2, this is no longer required.
if (class_exists(\core_external\external_api::class) && !class_exists(\external_api::class)) {
class_alias(\core_external\external_api::class, \external_api::class);
}

/**
* Backwards compatibility class for underlying core's external_api
*
* @package tool_dataflows
* @author Kevin Pham <[email protected]>
* @copyright Catalyst IT, 2023
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class external_api extends \external_api {
if (class_exists(\core_external\external_api::class)) {
\class_alias(\core_external\external_api::class, external_api::class);
} else (class_exists(\external_api::class)) {
\class_alias(\external_api::class, external_api::class);
}

0 comments on commit 3276585

Please sign in to comment.