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
mahara
mahara
Commits
2ab19cbe
Commit
2ab19cbe
authored
Feb 14, 2007
by
Martyn Smith
Committed by
Martyn Smith
Feb 14, 2007
Browse files
Fix the event framework to pass through artefact objects
parent
132b7a76
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/mahara.php
View file @
2ab19cbe
...
...
@@ -661,11 +661,13 @@ function handle_event($event, $data) {
throw
new
Exception
(
"Invalid event"
);
}
if
(
is_object
(
$data
))
{
if
(
$data
instanceof
ArtefactType
)
{
// leave it alone
}
else
if
(
is_object
(
$data
))
{
$data
=
(
array
)
$data
;
}
if
(
is_numeric
(
$data
))
{
else
if
(
is_numeric
(
$data
))
{
$data
=
array
(
'id'
=>
$data
);
}
...
...
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