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
0b468c59
Commit
0b468c59
authored
Mar 25, 2015
by
Mike Grant
Browse files
MDL-49587 plugin: Stop silencing include errors
Stop silencing errors when including version.php
parent
20d38830
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/classes/component.php
View file @
0b468c59
...
...
@@ -1101,7 +1101,7 @@ $cache = '.var_export($cache, true).';
$plugin
=
new
stdClass
();
$plugin
->
version
=
null
;
$module
=
$plugin
;
@
include
(
$fullplug
.
'/version.php'
);
include
(
$fullplug
.
'/version.php'
);
$versions
[
$type
.
'_'
.
$plug
]
=
$plugin
->
version
;
}
}
...
...
lib/classes/plugin_manager.php
View file @
0b468c59
...
...
@@ -291,7 +291,7 @@ class core_plugin_manager {
$plugin
=
new
stdClass
();
$plugin
->
version
=
null
;
$module
=
$plugin
;
@
include
(
$fullplug
.
'/version.php'
);
include
(
$fullplug
.
'/version.php'
);
$this
->
presentplugins
[
$type
][
$plug
]
=
$plugin
;
}
}
...
...
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