get_minified_js: use basename() on cached file

This commit is contained in:
Andrew Dolgov 2013-05-15 00:10:10 +04:00
parent bf495916ce
commit 32011b9b66
1 changed files with 1 additions and 1 deletions

View File

@ -4118,7 +4118,7 @@
foreach ($files as $js) {
if (!isset($_GET['debug'])) {
$cached_file = CACHE_DIR . "/js/$js.js";
$cached_file = CACHE_DIR . "/js/".basename($js).".js";
if (file_exists($cached_file) &&
is_readable($cached_file) &&