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
31e8418c
Commit
31e8418c
authored
Nov 06, 2006
by
Nigel McNie
Committed by
Nigel McNie
Nov 06, 2006
Browse files
Ensure that the base class is available (experimental)
parent
b43062ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/mahara.php
View file @
31e8418c
...
...
@@ -517,6 +517,8 @@ function validate_username($username) {
*/
function
safe_require
(
$plugintype
,
$pluginname
,
$filename
=
'lib.php'
,
$function
=
'require'
,
$nonfatal
=
false
)
{
require_once
(
get_config
(
'docroot'
)
.
$plugintype
.
'/lib.php'
);
$plugintype
=
clean_filename
(
$plugintype
);
$pluginname
=
clean_filename
(
$pluginname
);
...
...
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