Skip to content

Commit

Permalink
Add course params
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Sep 13, 2016
1 parent 4c0a779 commit 9182eda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions main/inc/lib/elfinder/filemanager.php
Expand Up @@ -4,4 +4,5 @@
require_once '../../global.inc.php';
Chat::setDisableChat();
$template = new Template();
$template->assign('course_condition', api_get_cidreq());
$template->display('default/javascript/editor/ckeditor/elfinder.tpl');
Expand Up @@ -20,7 +20,7 @@
$().ready(function() {
var funcNum = getUrlParam('CKEditorFuncNum');
var elf = $('#elfinder').elfinder({
url : '{{ _p.web_lib ~ 'elfinder/connectorAction.php' }}', // connector URL (REQUIRED)
url : '{{ _p.web_lib ~ 'elfinder/connectorAction.php?' }}{{ course_condition }}', // connector URL (REQUIRED)
getFileCallback : function(file) {
window.opener.CKEDITOR.tools.callFunction(funcNum, file.url);
window.close();
Expand Down

1 comment on commit 9182eda

@ywarnier
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.