com web/php: Fix the broken JS include on servers with notices enabled.: include/footer.inc
| From: | Paul Dragoonis | 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-22653@lists.php.net to get a copy of this message | ||
Commit: 4d6378e870f01a43810df58e68f2b65d1ad35878
Author: Adam Harvey <aharvey@php.net> Sun, 15 Sep 2013 22:39:34 -0700
Parents: 4da94432b39a72862f5ff727e2db96fcf3118980
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=4d6378e870f01a43810df58e68f2b65d1ad35878
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'])) {