|
|
|
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'];
|
|
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'];
|
Show » |
committed 1 file to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 08/May/08 11:04 AM
MDL-14716 Install script: icon image are now displayed on the Server Checks page
|
|
|
committed 1 file to 'Moodle CVS' - 08/May/08 11:08 AM
MDL-14716 Install script: icon image are now displayed on the Server Checks page, merged from19
|
|
|
committed 1 file to 'Moodle CVS' on branch 'MOODLE_18_STABLE' - 08/May/08 11:09 AM
MDL-14716 Install script: icon image are now displayed on the Server Checks page, merged from19
|
|
|
|