summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-05 07:09:01 +0300
committerAndrew Dolgov <[email protected]>2017-12-05 07:09:01 +0300
commitc4a08e4ff0f7f3cfab90d69aec055e72a4614a92 (patch)
treec1ed4cfdc06cc56243f97b4c5376eea77b225526 /include/functions.php
parent0518510814ffaca80d277bdf1a20fc3b44271f65 (diff)
remove mentions of deprecated.js
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/functions.php b/include/functions.php
index 0fd8ef61a..02d0416f8 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2349,9 +2349,9 @@
foreach ($files as $js) {
if (!isset($_GET['debug'])) {
- $cached_file = CACHE_DIR . "/js/".basename($js).".js";
+ $cached_file = CACHE_DIR . "/js/".basename($js);
- if (file_exists($cached_file) && is_readable($cached_file) && filemtime($cached_file) >= filemtime("js/$js.js")) {
+ if (file_exists($cached_file) && is_readable($cached_file) && filemtime($cached_file) >= filemtime("js/$js")) {
list($header, $contents) = explode("\n", file_get_contents($cached_file), 2);
@@ -2365,12 +2365,12 @@
}
}
- $minified = JShrink\Minifier::minify(file_get_contents("js/$js.js"));
+ $minified = JShrink\Minifier::minify(file_get_contents("js/$js"));
file_put_contents($cached_file, "tt-rss:" . VERSION . "\n" . $minified);
$rv .= $minified;
} else {
- $rv .= file_get_contents("js/$js.js"); // no cache in debug mode
+ $rv .= file_get_contents("js/$js"); // no cache in debug mode
}
}