Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
b239dfd9
Commit
b239dfd9
authored
Mar 01, 2017
by
Eloy Lafuente
Browse files
Merge branch 'MDL-53978-master-fix' of
https://github.com/andrewnicols/moodle
parents
e890de55
5d864948
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/moodlelib.php
View file @
b239dfd9
...
...
@@ -7479,8 +7479,9 @@ function get_plugins_with_function($function, $file = 'lib.php', $include = true
// Including both although I doubt that we will find two functions definitions with the same name.
// Clearning the filename as cache_helper::hash_key only allows a-zA-Z0-9_.
$key
=
$function
.
'_'
.
clean_param
(
$file
,
PARAM_ALPHA
);
$pluginfunctions
=
$cache
->
get
(
$key
);
if
(
$pluginfunctions
=
$cache
->
get
(
$key
)
)
{
if
(
$pluginfunctions
!==
false
)
{
// Checking that the files are still available.
foreach
(
$pluginfunctions
as
$plugintype
=>
$plugins
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment