remove mentions of deprecated.js
This commit is contained in:
parent
0518510814
commit
c4a08e4ff0
3 changed files with 7 additions and 7 deletions
|
@ -2349,9 +2349,9 @@
|
||||||
|
|
||||||
foreach ($files as $js) {
|
foreach ($files as $js) {
|
||||||
if (!isset($_GET['debug'])) {
|
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);
|
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);
|
file_put_contents($cached_file, "tt-rss:" . VERSION . "\n" . $minified);
|
||||||
$rv .= $minified;
|
$rv .= $minified;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$rv .= file_get_contents("js/$js.js"); // no cache in debug mode
|
$rv .= file_get_contents("js/$js"); // no cache in debug mode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -114,8 +114,8 @@
|
||||||
<?php
|
<?php
|
||||||
require_once 'lib/jshrink/Minifier.php';
|
require_once 'lib/jshrink/Minifier.php';
|
||||||
|
|
||||||
print get_minified_js(array("tt-rss",
|
print get_minified_js(["tt-rss.js",
|
||||||
"functions", "feedlist", "viewfeed", "PluginHost"));
|
"functions.js", "feedlist.js", "viewfeed.js", "PluginHost.js"]);
|
||||||
|
|
||||||
foreach (PluginHost::getInstance()->get_plugins() as $n => $p) {
|
foreach (PluginHost::getInstance()->get_plugins() as $n => $p) {
|
||||||
if (method_exists($p, "get_js")) {
|
if (method_exists($p, "get_js")) {
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print get_minified_js(array("functions", "deprecated", "prefs"));
|
print get_minified_js(["functions.js", "prefs.js"]);
|
||||||
|
|
||||||
init_js_translations();
|
init_js_translations();
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue