cvs: php-master-web /scripts update-backend

From: Date: Wed, 01 Nov 2006 17:02:06 +0000
Subject: cvs: php-master-web /scripts update-backend
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-33205@lists.php.net to get a copy of this message
rasmus Wed Nov 1 17:02:06 2006 UTC Modified files: /php-master-web/scripts update-backend Log: The event listing is amazingly long at the beginning of the month. Reduce it a bit by only showing the current month for the first 10 days. http://cvs.php.net/viewvc.cgi/php-master-web/scripts/update-backend?r1=1.20&r2=1.21&diff_format=u Index: php-master-web/scripts/update-backend diff -u php-master-web/scripts/update-backend:1.20 php-master-web/scripts/update-backend:1.21 --- php-master-web/scripts/update-backend:1.20 Fri Aug 6 08:54:58 2004 +++ php-master-web/scripts/update-backend Wed Nov 1 17:02:06 2006 @@ -23,8 +23,9 @@ fetch_into_file("http://master.php.net/fetch/countries.php?token=$token", "$root/include/countries.inc"); -// Get list of upcoming events -fetch_into_file("http://master.php.net/fetch/events.php?nm=2&token=$token", +// Get list of upcoming events (just current month if we are at the beginning of the month) +$nm = (date('j') < 10) ? 1:2; +fetch_into_file("http://master.php.net/fetch/events.php?nm=$nm&token=$token", "$root/backend/events.csv"); // Pregenerate event listing sidebar for homepage

« previous php.mirrors (#33205) next »