Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refixed bug MLD-7325

  • Loading branch information...
commit 9241a50fb77adee407cd811721bf9914c6b3fc5a 1 parent 6d1bb31
bobopinna authored
Showing with 3 additions and 34 deletions.
  1. +3 −5 mod/scorm/lib.php
  2. +0 −29 mod/scorm/mod.html
View
8 mod/scorm/lib.php
@@ -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) {
View
29 mod/scorm/mod.html
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.