MDL-55494 report_eventlist: ignore only logstore_legacy
authorMarina Glancy <marina@moodle.com>
Fri, 12 Aug 2016 05:55:38 +0000 (13:55 +0800)
committerMarina Glancy <marina@moodle.com>
Fri, 12 Aug 2016 05:55:38 +0000 (13:55 +0800)
report/eventlist/classes/list_generator.php

index b7483d6..ab30688 100644 (file)
@@ -197,7 +197,7 @@ class report_eventlist_list_generator {
                     if (method_exists($plugineventname, 'get_static_info')) {
                         if ($detail) {
                             $ref = new \ReflectionClass($plugineventname);
-                            if (!$ref->isAbstract() && $plugin != 'legacy') {
+                            if (!$ref->isAbstract() && $plugintype . '_' . $plugin !== 'logstore_legacy') {
                                 $noncorepluginlist = self::format_data($noncorepluginlist, $plugineventname);
                             }
                         } else {