Refixed bug MLD-7325
This commit is contained in:
+3
-5
@@ -9,10 +9,6 @@
|
||||
* @param mixed $scorm Form data
|
||||
* @return int
|
||||
*/
|
||||
|
||||
require_once($CFG->dirroot.'/mod/scorm/locallib.php');
|
||||
|
||||
|
||||
function scorm_add_instance($scorm) {
|
||||
if(empty($scorm->datadir)) { //check to make sure scorm object is valid BEFORE entering it in the database.
|
||||
error(get_string('badpackage', 'scorm'));
|
||||
@@ -393,7 +389,9 @@ function scorm_get_post_actions() {
|
||||
}
|
||||
|
||||
function scorm_option2text($scorm) {
|
||||
global $SCORM_POPUP_OPTIONS;
|
||||
global $CFG;
|
||||
|
||||
require_once('locallib.php');
|
||||
|
||||
if (isset($scorm->popup)) {
|
||||
if ($scorm->popup) {
|
||||
|
||||
@@ -163,10 +163,8 @@
|
||||
}
|
||||
} else {
|
||||
result = '<?php print_string('validation','scorm') ?>: '+ result + '\n';
|
||||
//result = '<?php echo $strvalidation ?>: '+ result + '\n';
|
||||
if (errorlogs != '') {
|
||||
result.concat('<?php print_string('errorlogs','scorm') ?>:\n'+errorlogs);
|
||||
// result = '<?php echo $strerrorlog ?>: '+ result + '\n';
|
||||
}
|
||||
alert(result);
|
||||
return false;
|
||||
@@ -330,20 +328,6 @@
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td align="right"><b><?php print_string('hidereview','scorm') ?>:</b></td>
|
||||
<td>
|
||||
<?php
|
||||
$options = array();
|
||||
$options[0]=get_string('no');
|
||||
$options[1]=get_string('yes');
|
||||
choose_from_menu ($options, 'hidereview', (int) $form->hidereview, '');
|
||||
helpbutton('reviewmode', get_string('hidereview','scorm'), 'scorm', true);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td align="right"><b><?php print_string('hidebrowse','scorm') ?>:</b></td>
|
||||
<td>
|
||||
@@ -379,19 +363,6 @@
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td align="right"><b><?php print_string('hideexit','scorm') ?>:</b></td>
|
||||
<td>
|
||||
<?php
|
||||
$options = array();
|
||||
$options[0]=get_string('no');
|
||||
$options[1]=get_string('yes');
|
||||
choose_from_menu ($options, 'hideexit', (int) $form->hideexit, '');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user