Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Apr 28, 2024
2 parents 2cccd8d + 1e38d1e commit 6ab3467
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
6 changes: 3 additions & 3 deletions assets/vue/components/social/UserProfileCard.vue
Expand Up @@ -18,7 +18,7 @@
<i :class="`mdi mdi-flag-${languageInfo.code.toLowerCase()}`"></i>
</template>
<template v-else>
{{ languageInfo.code }}
{{ t(languageInfo.code) }}
</template>
</div>

Expand Down Expand Up @@ -72,8 +72,8 @@
:key="item.variable"
>
<div v-if="item.value">
<dt v-if="item.variable !== 'langue_cible'">{{ item.label }}:</dt>
<dd v-if="item.variable !== 'langue_cible'">{{ item.value }}</dd>
<dt v-if="item.variable !== 'langue_cible'">{{ t(item.label) }}:</dt>
<dd v-if="item.variable !== 'langue_cible'">{{ t(item.value) }}</dd>

<div
v-if="item.variable === 'langue_cible'"
Expand Down
2 changes: 1 addition & 1 deletion public/main/admin/user_information.php
Expand Up @@ -405,7 +405,7 @@
$sessionInformation .= $courseToolInformationTotal;
}
} else {
$sessionInformation = '<p>'.get_lang('NoCourse sessionsForThisUser').'</p>';
$sessionInformation = '<p>'.get_lang('No course sessions for this user').'</p>';
}
$courseToolInformationTotal = '';

Expand Down
7 changes: 6 additions & 1 deletion public/main/exercise/result.php
Expand Up @@ -25,6 +25,10 @@

$cid = isset($_REQUEST['cid']) ? (int) $_REQUEST['cid'] : null;
$sid = isset($_REQUEST['sid']) ? (int) $_REQUEST['sid'] : null;
// Hack for sid not being picked up by CidReqListener (cid isn't either)
if (!empty($sid)) {
Session::write('sid', $sid);
}

// A notice for unauthorized people.
api_protect_course_script($show_headers, false, '', $cid);
Expand All @@ -47,7 +51,8 @@
$student_id = (int) $track_exercise_info['exe_user_id'];
$current_user_id = api_get_user_id();

$objExercise = new Exercise();
// Pass cid manually to avoid context issues with cid not being picked up by CidReqListener
$objExercise = new Exercise($cid);
if (!empty($exercise_id)) {
$objExercise->read($exercise_id);
}
Expand Down
3 changes: 3 additions & 0 deletions translations/messages.de.po
Expand Up @@ -25136,3 +25136,6 @@ msgstr "hat folgende Kompetenzen erworben"

msgid "Certificate Footer"
msgstr ""

msgid "No course session for this user"
msgstr "Keine Sessions für diesen Benutzer"
3 changes: 3 additions & 0 deletions translations/messages.fr.po
Expand Up @@ -29213,3 +29213,6 @@ msgstr "a obtenu les compétences suivantes "

msgid "Certificate Footer"
msgstr ""

msgid "No course session for this user"
msgstr "Pas de cours de session pour cet utilisateur"
3 changes: 3 additions & 0 deletions translations/messages.pot
Expand Up @@ -27515,3 +27515,6 @@ msgstr ""

msgid "Select date .."
msgstr ""

msgid "No course sessions for this user"
msgstr ""

0 comments on commit 6ab3467

Please sign in to comment.