Skip to content
Snippets Groups Projects
Commit c2a771e4 authored by Tim Hunt's avatar Tim Hunt
Browse files

Fix deprecated function warning with latest Moodle.

parent e57db1de
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,12 @@ class qtype_stack_admin_setting_maths_display_method extends admin_setting_confi ...@@ -41,7 +41,12 @@ class qtype_stack_admin_setting_maths_display_method extends admin_setting_confi
$this->choices = array('mathjax' => get_string('settingmathsdisplay_mathjax', 'qtype_stack')); $this->choices = array('mathjax' => get_string('settingmathsdisplay_mathjax', 'qtype_stack'));
// Remove this if statement once we no longer need to support Moodle 2.5.x.
if (class_exists('core_component')) {
$filters = core_component::get_plugin_list_with_file('filter', 'filter.php');
} else {
$filters = get_plugin_list_with_file('filter', 'filter.php'); $filters = get_plugin_list_with_file('filter', 'filter.php');
}
if (array_key_exists('tex', $filters)) { if (array_key_exists('tex', $filters)) {
$this->choices['tex'] = get_string('settingmathsdisplay_tex', 'qtype_stack'); $this->choices['tex'] = get_string('settingmathsdisplay_tex', 'qtype_stack');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment