mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
"fixed editor file manager link"
This commit is contained in:
parent
a2bd5aba3d
commit
7f39d66a43
1 changed files with 10 additions and 2 deletions
|
@ -208,8 +208,16 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element {
|
||||||
if ($maxfiles != 0 ) {
|
if ($maxfiles != 0 ) {
|
||||||
$str .= '<div><input type="hidden" name="'.$elname.'[itemid]" value="'.$draftitemid.'" /></div>';
|
$str .= '<div><input type="hidden" name="'.$elname.'[itemid]" value="'.$draftitemid.'" /></div>';
|
||||||
$str .= '<div id="'.$id.'_filemanager">';
|
$str .= '<div id="'.$id.'_filemanager">';
|
||||||
$editorurl = "$CFG->wwwroot/repository/filepicker.php?action=browse&env=editor&itemid=$draftitemid&subdirs=$subdirs&maxbytes=$maxbytes&ctx_id=".$ctx->id.'&course='.$PAGE->course->id;
|
$editorurl = new moodle_url("$CFG->wwwroot/repository/filepicker.php", array(
|
||||||
$str .= html_writer::link($editorurl, get_string('manageeditorfiles'), array('target'=>'_blank'));
|
'action'=>'browse',
|
||||||
|
'env'=>'editor',
|
||||||
|
'itemid'=>$draftitemid,
|
||||||
|
'subdirs'=>$subdirs,
|
||||||
|
'maxbytes'=>$maxbytes,
|
||||||
|
'ctx_id'=>$ctx->id,
|
||||||
|
'course'=>$PAGE->course->id
|
||||||
|
));
|
||||||
|
$str .= html_writer::link($editorurl->out(false), get_string('manageeditorfiles'), array('target'=>'_blank'));
|
||||||
//$str .= '<object type="text/html" data="'.$editorurl.'" height="160" width="600" style="border:1px solid #000">Error</object>';
|
//$str .= '<object type="text/html" data="'.$editorurl.'" height="160" width="600" style="border:1px solid #000">Error</object>';
|
||||||
$str .= '</div>';
|
$str .= '</div>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue