Feature #758
auto_add_headers (*)
| Status: | New | Start: | 08/26/2009 | |
| Priority: | Low | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | core | |||
| Target version: | 2.4 | |||
Description
Change this
to this
$js_files = glob("ext/*/script.js");
if($js_files) {
foreach($js_files as $js_file) {
$this->add_header("<script src='$data_href/$js_file' type='text/javascript'></script>");
}
}
to this
$js_files = glob("ext/*/*.js");
if($js_files) {
foreach($js_files as $js_file) {
$this->add_header("<script src='$data_href/$js_file' type='text/javascript'></script>");
}
}
History
Updated by Shish Moom 66 days ago
- Target version changed from 2.3 to 2.4
I've also had people want to specifically avoid auto-loading scripts :S
For now, moving to 2.4, as it'll break the code of anyone who depends on not-auto-loading; shall try and ponder a better solution later