Permalink
Browse files

Utilize JSMin

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@621 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
jakubvrana
jakubvrana committed May 29, 2009
1 parent 56e884f commit b8b45482f1bdc2dbb71f24e80a45d7917aa641eb
Showing with 2 additions and 1 deletion.
  1. +2 −1 _compile.php
View
@@ -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, "\\'");
@@ -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"]) {

0 comments on commit b8b4548

Please sign in to comment.