Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+7 -2
View File
@@ -9,6 +9,9 @@
*
* @package chamilo.messages
*/
use Symfony\Component\HttpFoundation\Request as HttpRequest;
session_cache_limiter('public');
require_once __DIR__.'/../inc/global.inc.php';
@@ -20,8 +23,10 @@ header('Expires: Wed, 01 Jan 1990 00:00:00 GMT');
header('Cache-Control: public');
header('Pragma: no-cache');
$messageId = isset($_GET['message_id']) ? $_GET['message_id'] : 0;
$attachmentId = isset($_GET['attachment_id']) ? $_GET['attachment_id'] : 0;
$httpRequest = HttpRequest::createFromGlobals();
$messageId = $httpRequest->query->getInt('message_id');
$attachmentId = $httpRequest->query->getInt('attachment_id');
$messageInfo = MessageManager::get_message_by_id($messageId);
$attachmentInfo = MessageManager::getAttachment($attachmentId);
+17
View File
@@ -101,6 +101,23 @@ if (api_get_setting('allow_social_tool') === 'true') {
$tpl = new Template(get_lang('MyFiles'));
SocialManager::setSocialUserBlock($tpl, api_get_user_id(), 'myfiles');
$language = 'en';
$platformLanguage = api_get_interface_language();
$iso = api_get_language_isocode($platformLanguage);
$filePart = "vendor/studio-42/elfinder/js/i18n/elfinder.$iso.js";
$file = api_get_path(SYS_PATH).$filePart;
$includeFile = '';
if (file_exists($file)) {
$includeFile = '<script type="text/javascript" src="'.api_get_path(WEB_PATH).$filePart.'"></script>';
$language = $iso;
}
$tpl->assign('course_condition', api_get_cidreq());
$tpl->assign('session_id', api_get_session_id());
$tpl->assign('question_id', 0);
$tpl->assign('elfinder_lang', $language);
$tpl->assign('elfinder_translation_file', $includeFile);
$editor = new \Chamilo\CoreBundle\Component\Editor\Editor();
$template = $tpl->get_template($editor->getEditorStandAloneTemplate());
$editor = $tpl->fetch($template);