From: Jakub Vrana Date: Fri, 7 Sep 2012 05:49:16 +0000 (-0700) Subject: Fix JUSH compilation X-Git-Tag: v3.6.0~17 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=63c9873c309eb0c66389da994e5a6f72ff5b83f8;p=adminer.git Fix JUSH compilation --- diff --git a/compile.php b/compile.php index 5e7223e1..0f2d7ad8 100755 --- a/compile.php +++ b/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 @@ foreach (array("adminer", "editor") as $project) { $replace = 'h(preg_replace("~\\\\\\\\?.*~", "", ME)) . "?file=\\1&version=' . $VERSION; $file = preg_replace('~\\.\\./adminer/static/(default\\.css|functions\\.js|favicon\\.ico)~', '', $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);