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

Install script: icon image are not displayed on the Server Checks page

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9
    • 1.8.6, 1.9.1
    • Installation
    • None
    • WAMP + Vista
    • Any
    • MOODLE_19_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      Test:

      • Take a clean Moodle or rename your config.old
      • Run moodle (Installation script)
      • Go through the installation to the "Server Checks" page.
      • No icon image ( Firefox) or missing images (IE).

      Cause:
      weblib.php:
      doc_link(...) {
      ...
      if (empty($iconpath))

      { $iconpath = $CFG->httpswwwroot . '/pix/docs.gif'; // PROBLEM: $CFG->httpswwwroot isn't define in install script }

      ...
      }

      Quick fix:
      install.php:
      case ENVIRONMENT: /// Environment checks
      + // Set CFG->httpswwwroot default value
      + // it is used to display icon image by doc_link() in weblib
      + global $CFG;
      + $CFG->httpswwwroot=$INSTALL['wwwrootform'];

      Attachments

        Activity

          People

            jerome Jérôme Mouneyrac
            jerome Jérôme Mouneyrac
            Petr Skoda Petr Skoda
            Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              15/May/08