mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
Merge branch 'w51_MDL-29996_m25_oldfilters' of git://github.com/skodak/moodle
This commit is contained in:
commit
dd89f61e68
24 changed files with 474 additions and 548 deletions
|
@ -33,7 +33,7 @@ class tinymce_dragmath extends editor_tinymce_plugin {
|
|||
if ($this->get_config('requiretex', 1)) {
|
||||
// If TeX filter is disabled, do not add button.
|
||||
$filters = filter_get_active_in_context($context);
|
||||
if (!array_key_exists('filter/tex', $filters)) {
|
||||
if (!array_key_exists('tex', $filters)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ class tinymce_moodleemoticon extends editor_tinymce_plugin {
|
|||
if ($this->get_config('requireemoticon', 1)) {
|
||||
// If emoticon filter is disabled, do not add button.
|
||||
$filters = filter_get_active_in_context($context);
|
||||
if (!array_key_exists('filter/emoticon', $filters)) {
|
||||
if (!array_key_exists('emoticon', $filters)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue