[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kde-www/media/includes
From:       Christoph Cullmann <crossfire () babylon2k ! de>
Date:       2003-01-31 22:50:16
[Download RAW message or body]

CVS commit by cullmann: 

equal month names


  M +10 -4     functions.inc   1.18


--- kde-www/media/includes/functions.inc  #1.17:1.18
@@ -89,12 +89,15 @@
         ereg("<date>(.*)</date>",$rdf_pieces[$x],$date );
 
+        $t = kde_parse_date ($date[1]);
+        $printDate2 = date ("d", $t)."&nbsp;".date ("F", $t);
+
         if ($writable)
         {
-          fputs($fcache, "<tr><td valign=\"top\"><b>".ereg_replace("^[[:blank:]]*[a-zA-Z]+ ([a-zA-Z]+) \
([0-9]+).*$", "\\2 \\1", $date[1])."</b></td>\n"); +          fputs($fcache, "<tr><td \
                valign=\"top\"><b>$printDate2</b></td>\n");
           fputs($fcache, "<td><a href=\"$links[1]\" title=\"Read the full article on \
dot.kde.org\">".$title[1]."</a></td></tr>\n");  }
         else
         {
-          print "<tr><td valign=\"top\"><b>".ereg_replace("^[[:blank:]]*[a-zA-Z]+ ([a-zA-Z]+) \
([0-9]+).*$", "\\2 \\1", $date[1])."</b></td>\n"; +          print "<tr><td \
                valign=\"top\"><b>$printDate2</b></td>\n";
           print "<td><a href=\"$links[1]\" title=\"Read the full article on \
dot.kde.org\">".$title[1]."</a></td></tr>\n";  }
@@ -170,7 +173,10 @@
         $printDate = ereg_replace("^[[:blank:]]*([0-9]+) ([a-zA-Z]{3}).*$", "\\2. \\1", $date[1]);
 
+        $t = kde_parse_date ($date[1]);
+        $printDate2 = date ("d", $t)."&nbsp;".date ("F", $t);
+
         if ($writable)
         {
-          fputs($fcache, "<tr>\n<td valign=\"top\">".(($printDate == $prevDate) ? "&nbsp;" : \
"<b>$printDate</b>")."</td>\n"); +          fputs($fcache, "<tr>\n<td valign=\"top\">".(($printDate == \
                $prevDate) ? "&nbsp;" : "<b>$printDate2</b>")."</td>\n");
           fputs($fcache, "<td valign=\"top\"><a href=\"$links[1]\">".$app[1] . (empty($branch[1]) ? "" : \
" :: $branch[1]") . " $version[1]"."</a>\n");  fputs($fcache, "<br />$desc[1]</td>");
@@ -179,5 +185,5 @@
         else
         {
-          print "<tr>\n<td valign=\"top\">".(($printDate == $prevDate) ? "&nbsp;" : \
"<b>$printDate</b>")."</td>\n"; +          print "<tr>\n<td valign=\"top\">".(($printDate == $prevDate) ? \
                "&nbsp;" : "<b>$printDate2</b>")."</td>\n";
           print "<td valign=\"top\"><a href=\"$links[1]\">".$app[1] . (empty($branch[1]) ? "" : " :: \
$branch[1]") . " $version[1]"."</a>\n";  print "<br />$desc[1]</td>";


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic