1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:35:56 +00:00

replace jsmin with jshrink

This commit is contained in:
Andrew Dolgov
2013-03-18 10:45:04 +04:00
parent e108568760
commit 107997e6cb
6 changed files with 521 additions and 381 deletions

View File

@@ -44,19 +44,19 @@
<script type="text/javascript">
<?php
require 'lib/jsmin.php';
require 'lib/jshrink/Minifier.php';
global $pluginhost;
foreach ($pluginhost->get_plugins() as $n => $p) {
if (method_exists($p, "get_prefs_js")) {
echo JSMin::minify($p->get_prefs_js());
echo JShrink\Minifier::minify($p->get_prefs_js());
}
}
foreach (array("functions", "deprecated", "prefs") as $js) {
if (!isset($_GET['debug'])) {
echo JSMin::minify(file_get_contents("js/$js.js"));
echo JShrink\Minifier::minify(file_get_contents("js/$js.js"));
} else {
echo file_get_contents("js/$js.js");
}