Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix base_text_filter to allow for other filters. #52

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions classes/text_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
namespace filter_multilang2;

if (class_exists('\core_filters\text_filter')) {
class_alias('\core_filters\text_filter', 'base_text_filter');
class_alias('\core_filters\text_filter', 'filter_multilang2_base_text_filter');
} else {
class_alias('\moodle_text_filter', 'base_text_filter');
class_alias('\moodle_text_filter', 'filter_multilang2_base_text_filter');
}

/**
Expand All @@ -70,7 +70,7 @@ class_alias('\moodle_text_filter', 'base_text_filter');
* 2015 onwards Iñaki Arenaza & Mondragon Unibertsitata
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class text_filter extends \base_text_filter {
class text_filter extends \filter_multilang2_base_text_filter {

/**
* @var array Cache of parent language(s) of a given language
Expand Down