Commit 53e0c284 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1450297: require artefact/file/lib.php in a safer way



Change-Id: I93bfa145149494abf8ad9d766079b987701b779f
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent ce311b0a
......@@ -95,7 +95,7 @@ function pieform_element_wysiwyg_get_headdata() {
$result .= " tinyMCE.execCommand('mceRemoveEditor', false, '$editor');\n";
}
$result .= "});</script>";
require_once(get_config('docroot') . 'artefact/file/lib.php');
safe_require('artefact', 'file');
$strings = PluginArtefactFile::jsstrings('filebrowser');
$jsstrings = '';
foreach ($strings as $section => $sectionstrings) {
......
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