Skip to content
GitLab
Menu
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
b20e34e1
Commit
b20e34e1
authored
Jan 21, 2007
by
Martyn Smith
Committed by
Martyn Smith
Jan 21, 2007
Browse files
Fix bug where trying to call methods before safe_requiring
parent
3d22eb75
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/artefact.php
View file @
b20e34e1
...
...
@@ -152,6 +152,8 @@ function artefact_instance_from_type($artefact_type, $user_id=null) {
$user_id
=
$USER
->
get
(
'id'
);
}
safe_require
(
'artefact'
,
get_field
(
'artefact_installed_type'
,
'plugin'
,
'name'
,
$artefact_type
));
if
(
!
call_static_method
(
generate_artefact_class_name
(
$artefact_type
),
'is_singular'
))
{
throw
new
ArtefactNotFoundException
(
"This artefact type is not a 'singular' artefact type"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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