summaryrefslogtreecommitdiffstats
path: root/application/helpers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-05-01 22:03:05 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-05-01 22:03:05 +0200
commit8f93ff5aea99ca98693a47d3f09043f65dee9ac2 (patch)
treee5493b8ce523fe78bfce42c772bfc4d8c5a196a9 /application/helpers
parente7797f36cf7fd98c825f497bc7f24015c95e8d22 (diff)
use function to generate links to css files
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/helpers')
-rw-r--r--application/helpers/filebin_helper.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php
index ac09da7d2..4c1423725 100644
--- a/application/helpers/filebin_helper.php
+++ b/application/helpers/filebin_helper.php
@@ -201,4 +201,15 @@ function random_alphanum($min_length, $max_length = null)
return $random;
}
+function link_with_mtime($file)
+{
+ $link = base_url($file);
+
+ if (file_exists(FCPATH.$file)) {
+ $link .= "?".filemtime(FCPATH.$file);
+ }
+
+ return $link;
+}
+
# vim: set noet: