-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
} |