com web/php: Fix elephpants on the frontpage (without www): include/footer.inc

From: 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-17184@lists.php.net to get a copy of this message
Commit: a8b3efcf71631612b38008817199f9374b617c82 Author: Hannes Magnusson <bjori@mongodb.com> Thu, 21 Nov 2013 22:19:41 -0800 Parents: b673552841d182c0854a91c9a6e07cc06b877314 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=a8b3efcf71631612b38008817199f9374b617c82 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>"; } ?>

« previous php.webmaster (#17184) next »