Commit 31e8418c authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Ensure that the base class is available (experimental)

parent b43062ad
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment