Skip to content

Commit

Permalink
Merge pull request #52 from lucaboesch/prefixbasetextfilter
Browse files Browse the repository at this point in the history
Prefix base_text_filter to allow for other filters.
  • Loading branch information
KepaUrzelai authored Oct 9, 2024
2 parents d301242 + 0138cf1 commit ed46091
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit ed46091

Please sign in to comment.