Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix JUSH compilation

  • Loading branch information...
commit ae54812b897575f0059e782fbca8ea6a86ed154e 1 parent f390b1f
Jakub Vrána authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  compile.php
2  compile.php
@@ -252,6 +252,7 @@ function minify_css($file) {
252 252
 }
253 253
 
254 254
 function minify_js($file) {
  255
+	$file = str_replace("'../externals/jush/'", "location.protocol + '//www.adminer.org/static/'", $file);
255 256
 	if (function_exists('jsShrink')) {
256 257
 		$file = jsShrink($file);
257 258
 	}
@@ -354,7 +355,6 @@ function compile_file($match) {
354 355
 	$replace = 'h(preg_replace("~\\\\\\\\?.*~", "", ME)) . "?file=\\1&version=' . $VERSION;
355 356
 	$file = preg_replace('~\\.\\./adminer/static/(default\\.css|functions\\.js|favicon\\.ico)~', '<?php echo ' . $replace . '"; ?>', $file);
356 357
 	$file = preg_replace('~\\.\\./adminer/static/([^\'"]*)~', '" . ' . $replace, $file);
357  
-	$file = str_replace("'../externals/jush/'", "location.protocol + '//www.adminer.org/static/'", $file);
358 358
 	$file = preg_replace("~<\\?php\\s*\\?>\n?|\\?>\n?<\\?php~", '', $file);
359 359
 	$file = php_shrink($file);
360 360
 

0 notes on commit ae54812

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