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.

    XMLWordPrintable

    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>

        Attachments

          Activity

            People

            Assignee:
            danmarsden Dan Marsden
            Reporter:
            urshunkler Urs Hunkler
            Tester:
            Tim Hunt
            Participants:
            Component watchers:
            Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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