Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

external CSS comes before external JS

  • Loading branch information...
commit 10dbe650e273fadf2e62aadcd0372dfa8950099e 1 parent 9660d2f
Shish authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  core/page.class.php
8  core/page.class.php
@@ -188,13 +188,10 @@ public function display() {
188 188
 
189 189
 	protected function add_auto_headers() {
190 190
 		$data_href = get_base_href();
191  
-		foreach(glob("lib/*.js") as $js) {
192  
-			$this->add_header("<script src='$data_href/$js' type='text/javascript'></script>");
193  
-		}
  191
+
194 192
 		foreach(glob("lib/*.css") as $css) {
195 193
 			$this->add_header("<link rel='stylesheet' href='$data_href/$css' type='text/css'>");
196 194
 		}
197  
-
198 195
 		$css_files = glob("ext/*/style.css");
199 196
 		if($css_files) {
200 197
 			foreach($css_files as $css_file) {
@@ -202,6 +199,9 @@ protected function add_auto_headers() {
202 199
 			}
203 200
 		}
204 201
 
  202
+		foreach(glob("lib/*.js") as $js) {
  203
+			$this->add_header("<script src='$data_href/$js' type='text/javascript'></script>");
  204
+		}
205 205
 		$js_files = glob("ext/*/script.js");
206 206
 		if($js_files) {
207 207
 			foreach($js_files as $js_file) {

0 notes on commit 10dbe65

Please sign in to comment.
Something went wrong with that request. Please try again.