]> git.joonet.de Git - adminer.git/commitdiff
Fix JUSH compilation
authorJakub Vrana <jakub@vrana.cz>
Fri, 7 Sep 2012 05:49:16 +0000 (22:49 -0700)
committerJakub Vrana <jakub@vrana.cz>
Fri, 7 Sep 2012 15:38:11 +0000 (08:38 -0700)
compile.php

index 5e7223e1bbe39affd8da988bcccb7ef71e380783..0f2d7ad81ad31c3cfed49535a2c9106e700c5457 100755 (executable)
@@ -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&amp;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);