From de444288bf67321d7306a317bff821959c81e766 Mon Sep 17 00:00:00 2001 From: Joakim Reinert Date: Sat, 2 May 2015 01:02:48 +0200 Subject: Add support for minified main.js --- application/helpers/filebin_helper.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'application/helpers') 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); -- cgit v1.2.3-24-g4f1b