com web/php: Switch the order of the timestamp and filename show the filename shows up in debug bars: include/footer.inc include/header.inc
| From: | Hannes Magnusson | Date: | Fri, 27 Dec 2013 00:06:51 +0000 |
| Subject: | com web/php: Switch the order of the timestamp and filename show the filename shows up in debug bars: include/footer.inc include/header.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-17799@lists.php.net to get a copy of this message | ||
Commit: ec187133dc1681a9302bd74022fbc251ce6bdaa6
Author: Hannes Magnusson <bjori@mongodb.com> Thu, 26 Dec 2013 16:06:51 -0800
Parents: feba5b534fbb59c2964109e0bbb8d7660ab93139
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=ec187133dc1681a9302bd74022fbc251ce6bdaa6
Log:
Switch the order of the timestamp and filename show the filename shows up in debug bars
Changed paths:
M include/footer.inc
M include/header.inc
Diff:
diff --git a/include/footer.inc b/include/footer.inc
index f291b3e..f6a0631 100644
--- a/include/footer.inc
+++ b/include/footer.inc
@@ -44,7 +44,7 @@
$jsfiles = array("ext/modernizr.js", "ext/hogan-2.0.0.min.js",
"ext/typeahead.min.js", "ext/mousetrap.min.js", "search.js",
"common.js");
foreach ($jsfiles as $filename) {
$path = dirname(dirname(__FILE__)).'/js/'.$filename;
- echo '<script type="text/javascript" src="' .. $MYSITE .
'cached.php?f=/js/'.$filename.'&t='.@filemtime($path).'"></script>'."\n";
+ echo '<script type="text/javascript" src="' . $MYSITE .
'cached.php?t=' . @filemtime($path) . '&f=/js/' . $filename .
'"></script>'."\n";
}
?>
diff --git a/include/header.inc b/include/header.inc
index 6454676..4b4e945 100755
--- a/include/header..inc
+++ b/include/header.inc
@@ -54,7 +54,7 @@ if ($config["cache"]) {
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,400italic,600italic|Source+Code+Pro&subset=latin,latin-ext'
rel='stylesheet' type='text/css'>
<?php foreach($CSS as $filename => $modified): ?>
-<link rel="stylesheet" type="text/css" href="<?php echo $MYSITE
?>cached.php?f=styles/<?php echo $filename?>&t=<?php echo $modified?>"
media="screen">
+<link rel="stylesheet" type="text/css" href="<?php echo $MYSITE
?>cached.php?t=<?php echo $modified?>&f=styles/<?php echo $filename?>"
media="screen">
<?php endforeach ?>
<!--[if lte IE 7]>