
| Key: |
MDL-10367
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Cannot Reproduce
|
| Priority: |
Critical
|
| Assignee: |
Tim Hunt
|
| Reporter: |
Urs Hunkler
|
| Votes: |
0
|
| Watchers: |
0
|
|
|
|
Issue Links:
|
Relates
|
|
This issue has a non-specific relationship to:
|
|
MDL-10075
Can't add rtl css files. Does Moodle load theme/config.php several times with different $CFG set?
|
|
|
|
|
|
|
|
| Participants: |
Tim Hunt and Urs Hunkler
|
| Security Level: |
None
|
| Resolved date: |
03/Feb/09
|
| Affected Branches: |
MOODLE_18_STABLE
|
What I have:
The meta.php in the custom theme folder contains:
(I added the echo statements around require_js for debugging)
<?php echo ('<!-- include start -->');
require_js($CFG->wwwroot.'/lib/mootools/mootools_comp.js');
echo ('<!-- include end -->'); ?>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->httpswwwroot ?>/theme/textcampus/styles_ie7.css" />
<![endif]-->
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->httpswwwroot ?>/theme/textcampus/styles_ie6.css" />
<link rel="stylesheet" media="all" type="text/css" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/basic_dd_ie.css" />
<![endif]-->
The correlating output in the Moodle page is:
<!-- include start --><script type="text/javascript" src="http://moodle18.userver.lan/lib/mootools/mootools_comp.js"></script>
<!-- include end -->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="http://moodle18.userver.lan/theme/textcampus/styles_ie7.css" />
<![endif]-->
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="http://moodle18.userver.lan/theme/textcampus/styles_ie6.css" />
<link rel="stylesheet" media="all" type="text/css" href="http://moodle18.userver.lan/theme/textcampus/basic_dd_ie.css" />
<![endif]-->
<script type="text/javascript" src="http://moodle18.userver.lan/lib/mootools/mootools_comp.js"></script>
The mootoolscomp.js library gets loaded twice.
When I load the library with require_js from header.html all works well.
|
|
Description
|
What I have:
The meta.php in the custom theme folder contains:
(I added the echo statements around require_js for debugging)
<?php echo ('<!-- include start -->');
require_js($CFG->wwwroot.'/lib/mootools/mootools_comp.js');
echo ('<!-- include end -->'); ?>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->httpswwwroot ?>/theme/textcampus/styles_ie7.css" />
<![endif]-->
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->httpswwwroot ?>/theme/textcampus/styles_ie6.css" />
<link rel="stylesheet" media="all" type="text/css" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/basic_dd_ie.css" />
<![endif]-->
The correlating output in the Moodle page is:
<!-- include start --><script type="text/javascript" src="http://moodle18.userver.lan/lib/mootools/mootools_comp.js"></script>
<!-- include end -->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="http://moodle18.userver.lan/theme/textcampus/styles_ie7.css" />
<![endif]-->
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="http://moodle18.userver.lan/theme/textcampus/styles_ie6.css" />
<link rel="stylesheet" media="all" type="text/css" href="http://moodle18.userver.lan/theme/textcampus/basic_dd_ie.css" />
<![endif]-->
<script type="text/javascript" src="http://moodle18.userver.lan/lib/mootools/mootools_comp.js"></script>
The mootoolscomp.js library gets loaded twice.
When I load the library with require_js from header.html all works well. |
Show » |
|
MDL-10075?