com web/php: Fix elephpants on the frontpage (without www): include/footer.inc
| From: | Paul Dragoonis | Date: | Fri, 22 Nov 2013 06:19:41 +0000 |
| Subject: | com web/php: Fix elephpants on the frontpage (without www): include/footer.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22465@lists.php.net to get a copy of this message | ||
Commit: 1fb7ded2a17830394dc7d9dec543466a6805afa0
Author: Hannes Magnusson <bjori@mongodb.com> Thu, 21 Nov 2013 22:19:41 -0800
Parents: a6f715665f11cfa6a1e109a3f33d5e2de2f977eb
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=1fb7ded2a17830394dc7d9dec543466a6805afa0
Log:
Fix elephpants on the frontpage (without www)
And there is also no reason to check for "/" anyway.
To enable them you have to pass in the key explicitly
(which currently the docs do too..)
Changed paths:
M include/footer.inc
Diff:
diff --git a/include/footer.inc b/include/footer.inc
index b57afca..49640da 100644
--- a/include/footer.inc
+++ b/include/footer.inc
@@ -37,7 +37,7 @@
<?php
// if elephpants enabled, insert placeholder nodes
// to be populated with images via javascript.
- if (isset($config['elephpants']) && $_SERVER['REQUEST_URI'] ==
'/') {
+ if (isset($config['elephpants'])) {
print "<div class='elephpants'><div
class=images></div></div>";
}
?>