com web/php: Fix the broken JS include on servers with notices enabled.: include/footer.inc
| From: | Adam Harvey | Date: | Mon, 16 Sep 2013 05:39:34 +0000 |
| Subject: | com web/php: Fix the broken JS include on servers with notices enabled.: include/footer.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-16607@lists.php.net to get a copy of this message | ||
Commit: 5d7d66d850ca8961c94470061afc4968a0b5a408
Author: Adam Harvey <aharvey@php.net> Sun, 15 Sep 2013 22:39:34 -0700
Parents: b9b7f3a5a6218dd680cc5694adbf38f598cbd719
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=5d7d66d850ca8961c94470061afc4968a0b5a408
Log:
Fix the broken JS include on servers with notices enabled.
$v is never defined in site_footer()'s scope — I've just nicked the declaration
from header.inc for now, but we probably should have a better way of defining
this before "beta" becomes "stable".
Changed paths:
M include/footer.inc
Diff:
diff --git a/include/footer.inc b/include/footer.inc
index 191f0cd..7417263 100644
--- a/include/footer.inc
+++ b/include/footer.inc
@@ -1,3 +1,7 @@
+<?php
+// Disable caching, annoying while developing
+$v = "?v=" .$_SERVER["REQUEST_TIME"];
+?>
</section><!-- layout-content -->
<?php
if (!empty($config['spanning-content'])) {