[med-svn] r518 - trunk/community/website
hanska-guest at alioth.debian.org
hanska-guest at alioth.debian.org
Tue Oct 2 14:05:37 UTC 2007
Author: hanska-guest
Date: 2007-10-02 14:05:37 +0000 (Tue, 02 Oct 2007)
New Revision: 518
Modified:
trunk/community/website/index.php
Log:
Now the regex should work. :)
Modified: trunk/community/website/index.php
===================================================================
--- trunk/community/website/index.php 2007-10-02 13:49:06 UTC (rev 517)
+++ trunk/community/website/index.php 2007-10-02 14:05:37 UTC (rev 518)
@@ -70,14 +70,13 @@
// we show only the last 10 commits by default
for ($i = 0; $i < 9; $i++) {
$desc = html_entity_decode($rs["items"][$i]["description"]);
- $desc = preg_replace("/Commit by \([\w-]+\)\( ::.*\)/",
- "Commit by <a href=\"http:\/\/alioth.debian.org\/users\/$2\">$2<\/a>$3",
- $desc);
+ $desc = preg_replace("/(Commit by.*)<strong>(.*)<\/strong>/",
+ "\\1<strong><a href=\"http://alioth.debian.org/users/\\2\">\\2</strong>",
+ $desc);
?>
<tr>
<td><?=$rs["items"][$i]["pubDate"]?></td>
<td>debian-med</td>
- s/\(^.* \)\(.*\)\( ::.*\)/\1<a>\2<\/a>\3/g
<td><?=$desc?></td>
<td><a href="<?=$rs["items"][$i]["link"]?>">»</a></td>
</tr>
More information about the debian-med-commit
mailing list