]> git.wh0rd.org - tt-rss.git/blobdiff - prefs.php
cache minified js files
[tt-rss.git] / prefs.php
index 4027fd1faded09e0f3f4a397aec409ccb7f3a73c..a47d00bce29416fd2d6421b2aaa5dd4818a58932 100644 (file)
--- a/prefs.php
+++ b/prefs.php
                        }
                }
 
-               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>