Moodle

rd.js not loaded. The PHP short form "<?=$CFG->wwwroot?>" doesn't work on all servers.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.8.6
  • Fix Version/s: 1.8.7, 1.9.3, 2.0
  • Component/s: SCORM
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

Description

mod/scorm/player.php Line 140
<script type="text/javascript" src="<?=$CFG->wwwroot?>/mod/scorm/rd.js"></script>

The PHP short form "<?=$CFG->wwwroot?>" doesn't work on all servers. Under certain circumstances the short form is not resolved and the script not loaded. I have gotten this issue now.

Moodle programing guidelines propose not to use the short forms. Please replace with
<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>/mod/scorm/rd.js"></script>

Activity

Hide
Dan Marsden added a comment -

thanks Urs - I missed that!

fixed in 1.8stable,1.9stable and HEAD

Dan

Show
Dan Marsden added a comment - thanks Urs - I missed that! fixed in 1.8stable,1.9stable and HEAD Dan
Hide
Tim Hunt added a comment -

Looks good to me.

Show
Tim Hunt added a comment - Looks good to me.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: