MDL-12161 Stripped slashes in LO titles
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -213,6 +213,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;
|
||||
|
||||
@@ -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'))) {
|
||||
|
||||
Reference in New Issue
Block a user