summaryrefslogtreecommitdiffstats
path: root/application/helpers
diff options
context:
space:
mode:
authorJoakim Reinert <mail@jreinert.com>2015-05-02 01:02:48 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-05 12:21:27 +0200
commitde444288bf67321d7306a317bff821959c81e766 (patch)
tree25b78256975222b00a39140ad56833d3c2eccc76 /application/helpers
parent46f0516a885ff28d63699c892eecd7a34b6a9ac3 (diff)
Add support for minified main.js
Diffstat (limited to 'application/helpers')
-rw-r--r--application/helpers/filebin_helper.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php
index 2ac061e79..8db605cfd 100644
--- a/application/helpers/filebin_helper.php
+++ b/application/helpers/filebin_helper.php
@@ -135,6 +135,13 @@ function link_with_mtime($file)
return $link;
}
+function main_min_js_name()
+{
+ $files = glob(FCPATH . 'data/js/main.min.*.js');
+ $filename = basename(empty($files) ? 'MAIN_NOT_MINIFIED' : end($files));
+ return str_replace('.js', '', $filename);
+}
+
function handle_etag($etag)
{
$etag = strtolower($etag);