Commit 134dcc18 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Modified safe_require to default to 'lib.php'

parent 5485ff05
......@@ -475,7 +475,7 @@ function validate_username($username) {
* @param string $function (optional, defaults to require) the require/include function to use
* @param string $nonfatal (optional, defaults to false) just returns false if the file doesn't exist
function safe_require($plugintype, $pluginname, $filename, $function='require', $nonfatal=false) {
function safe_require($plugintype, $pluginname, $filename='lib.php', $function='require', $nonfatal=false) {
$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