Skip to content

Commit

Permalink
Utilize JSMin
Browse files Browse the repository at this point in the history
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@621 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information
jakubvrana committed May 29, 2009
1 parent 56e884f commit b8b4548
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _compile.php
@@ -1,5 +1,6 @@
<?php
include dirname(__FILE__) . "/version.inc.php";
include dirname(__FILE__) . "/externals/jsmin-php/jsmin.php";

function add_apo_slashes($s) {
return addcslashes($s, "\\'");
Expand Down Expand Up @@ -183,7 +184,7 @@ function php_shrink($input) {
?>' . preg_replace('~\\s*([:;{},])\\s*~', '\\1', file_get_contents(dirname(__FILE__) . "/default.css")) . '<?php
} elseif ($_GET["file"] == "functions.js") {
header("Content-Type: text/javascript");
?>' . file_get_contents(dirname(__FILE__) . "/functions.js") . '<?php
?>' . JSMin::minify(file_get_contents(dirname(__FILE__) . "/functions.js")) . '<?php
} else {
header("Content-Type: image/gif");
switch ($_GET["file"]) {
Expand Down

0 comments on commit b8b4548

Please sign in to comment.