r1710 - tools/webtools/timeline
Author: jw Date: 2006-08-10 23:12:00 +0200 (Thu, 10 Aug 2006) New Revision: 1710 Modified: tools/webtools/timeline/tlcacher.php Log: timeline: link anchors in diff link Modified: tools/webtools/timeline/tlcacher.php =================================================================== --- tools/webtools/timeline/tlcacher.php 2006-08-10 20:07:49 UTC (rev 1709) +++ tools/webtools/timeline/tlcacher.php 2006-08-10 21:12:00 UTC (rev 1710) @@ -188,7 +188,6 @@ foreach ($wikiedits as $ed) { preg_match('/\[\[.*\]\] ./', $ed, $matches); $page = $matches[0]; - $page_diff = trim(str_replace("]]", "?action=diff|diff]]", $page)); preg_match('/by \[\[.*\]\]/', $ed, $matches); $user = $matches[0]; preg_match("/\=(.*)\=/s",$ed,$matches); @@ -200,6 +199,7 @@ preg_match('/(..\:..)/',$date,$matches); $time = $matches[0]; $date = date("Y-m-d", $tstamp); + $page_diff = trim(str_replace("]]", "?action=diff#$date $time|diff]]", $page)); $description = "Wiki page $page edited $user ($page_diff)"; if ($tstamp > $last_wiki) { $events[] = array( 'cache_id' => $tstamp, 'tstamp' => $tstamp, 'icon' => $icon, 'date' => $date,
participants (1)
-
crux@crux.nu