Commit:    25d55f65a2088ffe412fbd9ce0d451226967cc4c
Author:    Hannes Magnusson <[email protected]>         Thu, 26 Dec 2013 
16:06:51 -0800
Parents:   6428d9439889fc4eac0997bdbdd6e71c8b2f14e0
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=25d55f65a2088ffe412fbd9ce0d451226967cc4c

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.'&amp;t='.@filemtime($path).'"></script>'."\n";
+   echo '<script type="text/javascript" src="' . $MYSITE . 'cached.php?t=' . 
@filemtime($path) . '&amp;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&amp;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?>&amp;t=<?php echo $modified?>" 
media="screen">
+<link rel="stylesheet" type="text/css" href="<?php echo $MYSITE 
?>cached.php?t=<?php echo $modified?>&amp;f=styles/<?php echo $filename?>" 
media="screen">
 <?php endforeach ?>
 
  <!--[if lte IE 7]>


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to