summaryrefslogtreecommitdiffstats
path: root/application/views/file
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/file')
-rw-r--r--application/views/file/header.php2
-rw-r--r--application/views/file/html_header.php4
-rw-r--r--application/views/file/upload_form.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/application/views/file/header.php b/application/views/file/header.php
index ca540c805..733c6788e 100644
--- a/application/views/file/header.php
+++ b/application/views/file/header.php
@@ -3,7 +3,7 @@
<head>
<title><?php echo isset($title) ? $title : ''; ?></title>
- <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>data/default.css?<?php echo filemtime(FCPATH."/data/default.css"); ?>" media="screen" />
+ <link rel="stylesheet" type="text/css" href="<?php echo link_with_mtime("/data/default.css"); ?>" media="screen" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex,nofollow" />
</head>
diff --git a/application/views/file/html_header.php b/application/views/file/html_header.php
index 284844410..b2c49c3b2 100644
--- a/application/views/file/html_header.php
+++ b/application/views/file/html_header.php
@@ -2,8 +2,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $title; ?></title>
- <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>data/paste.css?<?php echo filemtime(FCPATH."/data/paste.css"); ?>" />
- <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>data/paste-<?php echo $current_highlight; ?>.css<?php if (file_exists(FCPATH."/data/paste-".$current_highlight.".css")) { echo "?".filemtime(FCPATH."/data/paste-".$current_highlight.".css");} ?>" />
+ <link rel="stylesheet" type="text/css" href="<?php echo link_with_mtime("/data/paste.css"); ?>" />
+ <link rel="stylesheet" type="text/css" href="<?php echo link_with_mtime("/data/paste-$current_highlight.css"); ?>" />
</head>
<body>
<div class="top_bar">
diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php
index e0bdef935..f4d325e0b 100644
--- a/application/views/file/upload_form.php
+++ b/application/views/file/upload_form.php
@@ -18,7 +18,7 @@
var max_upload_size = "<?php echo $max_upload_size; ?>";
/* ]]> */
</script>
- <script type="text/javascript" src="<?php echo base_url(); ?>data/js/upload_form.js?<?php echo filemtime(FCPATH."/data/js/upload_form.js"); ?>"></script>
+ <script type="text/javascript" src="<?php echo link_with_mtime("/data/js/upload_form.js"); ?>"></script>
</div>
<? } else { ?>
You have to <?=anchor("user/login", "log in"); ?> to be able to upload/paste.