summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-15 00:10:10 +0400
committerAndrew Dolgov <[email protected]>2013-05-15 00:10:10 +0400
commit32011b9b66bec0b44964b95871bc87d06b5ec525 (patch)
tree14d0223ab10bd1e0a949b5a9084488c720208e38 /include
parentbf495916ceb38151570cde0cf23e66ca6f981c1e (diff)
get_minified_js: use basename() on cached file
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 48bb39d28..149809a35 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -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) &&