Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-15967

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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>

        Gliffy Diagrams

          Activity

          Hide
          danmarsden Dan Marsden added a comment -

          thanks Urs - I missed that!

          fixed in 1.8stable,1.9stable and HEAD

          Dan

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

          Looks good to me.

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

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Oct/08