Permalink
Browse files

external CSS comes before external JS

  • Loading branch information...
1 parent 9660d2f commit 10dbe650e273fadf2e62aadcd0372dfa8950099e @shish shish committed Jul 30, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 core/page.class.php
View
@@ -188,20 +188,20 @@ public function display() {
protected function add_auto_headers() {
$data_href = get_base_href();
- foreach(glob("lib/*.js") as $js) {
- $this->add_header("<script src='$data_href/$js' type='text/javascript'></script>");
- }
+
foreach(glob("lib/*.css") as $css) {
$this->add_header("<link rel='stylesheet' href='$data_href/$css' type='text/css'>");
}
-
$css_files = glob("ext/*/style.css");
if($css_files) {
foreach($css_files as $css_file) {
$this->add_header("<link rel='stylesheet' href='$data_href/$css_file' type='text/css'>");
}
}
+ foreach(glob("lib/*.js") as $js) {
+ $this->add_header("<script src='$data_href/$js' type='text/javascript'></script>");
+ }
$js_files = glob("ext/*/script.js");
if($js_files) {
foreach($js_files as $js_file) {

0 comments on commit 10dbe65

Please sign in to comment.