mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-12161 Stripped slashes in LO titles
This commit is contained in:
parent
894722ed9c
commit
552254834b
3 changed files with 7 additions and 4 deletions
|
@ -357,6 +357,7 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
|
||||
foreach ($scoes as $sco) {
|
||||
$isvisible = false;
|
||||
$sco->title = stripslashes($sco->title);
|
||||
if ($optionaldatas = scorm_get_sco($sco->id, SCO_DATA)) {
|
||||
if (!isset($optionaldatas->isvisible) || (isset($optionaldatas->isvisible) && ($optionaldatas->isvisible == 'true'))) {
|
||||
$isvisible = true;
|
||||
|
@ -480,7 +481,7 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
if ($sco->id == $scoid) {
|
||||
$result->prerequisites = false;
|
||||
}
|
||||
$result->toc .= $statusicon.' '.$sco->title."</li>\n";
|
||||
$result->toc .= $statusicon.' '.format_string($sco->title)."</li>\n";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -213,13 +213,14 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
|
||||
foreach ($scoes as $sco) {
|
||||
$isvisible = false;
|
||||
$sco->title = stripslashes($sco->title);
|
||||
if ($optionaldatas = scorm_get_sco($sco->id, SCO_DATA)) {
|
||||
if (!isset($optionaldatas->isvisible) || (isset($optionaldatas->isvisible) && ($optionaldatas->isvisible == 'true'))) {
|
||||
$isvisible = true;
|
||||
}
|
||||
} else {
|
||||
$isvisible = true;
|
||||
}
|
||||
else
|
||||
$isvisible = true;
|
||||
if ($parents[$level]!=$sco->parent) {
|
||||
if ($newlevel = array_search($sco->parent,$parents)) {
|
||||
for ($i=0; $i<($level-$newlevel); $i++) {
|
||||
|
@ -336,7 +337,7 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
if ($sco->id == $scoid) {
|
||||
$result->prerequisites = false;
|
||||
}
|
||||
$result->toc .= $statusicon.' '.$sco->title."</li>\n";
|
||||
$result->toc .= $statusicon.' '.format_string($sco->title)."</li>\n";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -63,6 +63,7 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
$parents[$level]='/';
|
||||
foreach ($scoes as $sco) {
|
||||
$isvisible = false;
|
||||
$sco->title = stripslashes($sco->title);
|
||||
if (isset($optionaldatas[$sco->identifier])) {
|
||||
if (!isset($optionaldatas[$sco->identifier]->isvisible) ||
|
||||
(isset($optionaldatas[$sco->identifier]->isvisible) && ($optionaldatas[$sco->identifier]->isvisible == 'true'))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue