Commit:    a1173b6333445a08e374690847e2cb47f2e85532
Author:    Hannes Magnusson <[email protected]>         Tue, 7 Jan 2014 
11:11:59 -0800
Parents:   fc9b8520d3409d275368a2db5914363a09f3852b
Branches:  master

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

Log:
"z" starts at 0. And $now = $_SERVER["REQUEST_TIME"] already

Changed paths:
  M  images/logo.php


Diff:
diff --git a/images/logo.php b/images/logo.php
index 8e41e78..9f5b3a6 100644
--- a/images/logo.php
+++ b/images/logo.php
@@ -44,8 +44,8 @@ switch($_SERVER["QUERY_STRING"]) {
 }
 
 /* xmas season, december and the first week of January */
-$day = date("z", $_SERVER["REQUEST_TIME"]) - date("L", $now);
-if ($day < 7 || 365-$day < 32) {
+$day = date("z", $now) - date("L", $now);
+if ($day < 6 || 365-$day < 32) {
     $logos = array("./logos/php-xmas-2013.png");
 }


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

Reply via email to