Commit f95567f7 authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review
Browse files

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

parents 1ed98eaa 53e0c284
......@@ -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) {
......
Supports Markdown
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