summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-18 11:00:44 +0400
committerAndrew Dolgov <[email protected]>2013-03-18 11:00:44 +0400
commitc670a80ddd9b03bd4ea6d940a9ed682fd26248d7 (patch)
tree69b562eb609b4a7ef3ed95138c9f5b6d91896a52 /prefs.php
parent107997e6cb04f5daddb11e631b9866c385f2ca7d (diff)
cache minified js files
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/prefs.php b/prefs.php
index 4027fd1fa..a47d00bce 100644
--- a/prefs.php
+++ b/prefs.php
@@ -54,13 +54,8 @@
}
}
- foreach (array("functions", "deprecated", "prefs") as $js) {
- if (!isset($_GET['debug'])) {
- echo JShrink\Minifier::minify(file_get_contents("js/$js.js"));
- } else {
- echo file_get_contents("js/$js.js");
- }
- }
+ print get_minified_js(array("functions", "deprecated", "prefs"));
+
?>
</script>