summaryrefslogtreecommitdiffstats
path: root/application/views/file
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-10-01 19:02:40 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-10-01 19:03:59 +0200
commitc4f87a04bbbd8083b2e7ddc366447ff3c12cab23 (patch)
tree94607510c27d3062f7c9edde048e213320ac01f4 /application/views/file
parent9f60efccb9e760ec07cfca5a3d4a0c4fb0eb6018 (diff)
check if file exists before getting mtime
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views/file')
-rw-r--r--application/views/file/html_header.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/views/file/html_header.php b/application/views/file/html_header.php
index 499b3adec..436f7491d 100644
--- a/application/views/file/html_header.php
+++ b/application/views/file/html_header.php
@@ -3,7 +3,7 @@
<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 echo filemtime(FCPATH."/data/paste-".$current_highlight.".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");} ?>" />
</head>
<body>
<div class="top_bar">