Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.6
-
Fix Version/s: 2.6
-
Component/s: Events API
-
Labels:
-
Testing Instructions:
- See description.
-
Affected Branches:MOODLE_26_STABLE
-
Fixed Branches:MOODLE_26_STABLE
-
Epic Link:
-
Pull from Repository:
-
Pull Master Branch:
MDL-41565-master -
Pull Master Diff URL:
-
Story Points:2
-
Sprint:BACKEND Sprint 4
Description
The observers property includefile is not relative to dirroot anymore.
Add the following observer to any events file (for instance lib/db/events.php):
$observers = array(
|
array(
|
'eventname' => '\core\event\group_created',
|
'callback' => 'print_object',
|
'includefile' => '/lib/datalib.php'
|
)
|
)
|
Purge cache, and create a new group, and make sure the content of the event has been printed out.