Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
c2a771e4
Commit
c2a771e4
authored
11 years ago
by
Tim Hunt
Browse files
Options
Downloads
Patches
Plain Diff
Fix deprecated function warning with latest Moodle.
parent
e57db1de
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
settingslib.php
+6
-1
6 additions, 1 deletion
settingslib.php
with
6 additions
and
1 deletion
settingslib.php
+
6
−
1
View file @
c2a771e4
...
@@ -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'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment