mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-55494 tool_monitor: ignore only tool_monitor and logstore_legacy
previously any plugin type ending with _monitor or _legacy would be ignored
This commit is contained in:
parent
6f302b17b9
commit
951f77006a
@ -103,15 +103,16 @@ class eventlist {
|
||||
foreach ($pluginlist as $plugin => $directory) {
|
||||
$plugindirectory = $directory . '/classes/event';
|
||||
foreach (self::get_file_list($plugindirectory) as $eventname => $notused) {
|
||||
$plugineventname = '\\' . $plugintype . '_' . $plugin . '\\event\\' . $eventname;
|
||||
$fullpluginname = $plugintype . '_' . $plugin;
|
||||
$plugineventname = '\\' . $fullpluginname . '\\event\\' . $eventname;
|
||||
// Check that this is actually an event.
|
||||
if (method_exists($plugineventname, 'get_static_info') && $plugin != 'monitor') { // No selfie here.
|
||||
if (method_exists($plugineventname, 'get_static_info') && $fullpluginname !== 'tool_monitor') { // No selfie here.
|
||||
$ref = new \ReflectionClass($plugineventname);
|
||||
if (!$ref->isAbstract() && $plugin != 'legacy') {
|
||||
if (!$ref->isAbstract() && $fullpluginname !== 'logstore_legacy') {
|
||||
if ($withoutcomponent) {
|
||||
$noncorepluginlist[$plugineventname] = $plugineventname::get_name();
|
||||
} else {
|
||||
$noncorepluginlist[$plugintype . '_' . $plugin][$plugineventname] = $plugineventname::get_name();
|
||||
$noncorepluginlist[$fullpluginname][$plugineventname] = $plugineventname::get_name();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user