filemanager.php 792 B

1234567891011121314151617181920212223
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once __DIR__.'/../../global.inc.php';
  4. Chat::setDisableChat();
  5. $template = new Template();
  6. $template->assign('course_condition', api_get_cidreq());
  7. $language = 'en';
  8. $platformLanguage = api_get_interface_language();
  9. $iso = api_get_language_isocode($platformLanguage);
  10. $filePart = "vendor/studio-42/elfinder/js/i18n/elfinder.$iso.js";
  11. $file = api_get_path(SYS_PATH).$filePart;
  12. $includeFile = '';
  13. if (file_exists($file)) {
  14. $includeFile = '<script type="text/javascript" src="'.api_get_path(WEB_PATH).$filePart.'"></script>';
  15. $language = $iso;
  16. }
  17. $template->assign('elfinder_lang', $language);
  18. $template->assign('elfinder_translation_file', $includeFile);
  19. $template->display('default/javascript/editor/ckeditor/elfinder.tpl');