Permalink
Browse files

Fix JUSH compilation

  • Loading branch information...
1 parent dd86e18 commit 63c9873c309eb0c66389da994e5a6f72ff5b83f8 @vrana committed Sep 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 compile.php
View
2 compile.php
@@ -252,6 +252,7 @@ function minify_css($file) {
}
function minify_js($file) {
+ $file = str_replace("'../externals/jush/'", "location.protocol + '//www.adminer.org/static/'", $file);
if (function_exists('jsShrink')) {
$file = jsShrink($file);
}
@@ -354,7 +355,6 @@ function compile_file($match) {
$replace = 'h(preg_replace("~\\\\\\\\?.*~", "", ME)) . "?file=\\1&version=' . $VERSION;
$file = preg_replace('~\\.\\./adminer/static/(default\\.css|functions\\.js|favicon\\.ico)~', '<?php echo ' . $replace . '"; ?>', $file);
$file = preg_replace('~\\.\\./adminer/static/([^\'"]*)~', '" . ' . $replace, $file);
- $file = str_replace("'../externals/jush/'", "location.protocol + '//www.adminer.org/static/'", $file);
$file = preg_replace("~<\\?php\\s*\\?>\n?|\\?>\n?<\\?php~", '', $file);
$file = php_shrink($file);

0 comments on commit 63c9873

Please sign in to comment.