[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: www/international/germany
From: Klaus Staerk <staerk () kde ! org>
Date: 2003-07-01 8:43:19
[Download RAW message or body]
CVS commit by staerk:
fixing bug in news generation: s/int/round/
($quarter for July was "2")
M +1 -1 inc/news-links.inc 1.16
M +1 -1 news/news.php 1.15
--- www/international/germany/inc/news-links.inc #1.15:1.16
@@ -18,5 +18,5 @@
// Determine name of currently used archive file, we don't want that one
// to show up in the archive.
- $curQuarter = (int)(date("n") / 4) + 1;
+ $curQuarter = round((date("n") / 4) + 1);
$curArchive = date("Y")."-0".$curQuarter.".xml";
--- www/international/germany/news/news.php #1.14:1.15
@@ -7,5 +7,5 @@
$location = "/ <a href=\"$dir/index-script.php\">KDE Deutschland</a> / Nachrichten";
$year = date("Y");
- $quarter = (int)(date("n") / 4) + 1;
+ $quarter = round((date("n") / 4) + 1);
} else {
$queries = split( '&', $query_str );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic