Author: jw Date: 2006-08-10 18:33:53 +0200 (Thu, 10 Aug 2006) New Revision: 1705 Modified: tools/webtools/timeline/tlcacher.php Log: Generate a 'diff' link for wiki edits Modified: tools/webtools/timeline/tlcacher.php =================================================================== --- tools/webtools/timeline/tlcacher.php 2006-08-10 15:00:23 UTC (rev 1704) +++ tools/webtools/timeline/tlcacher.php 2006-08-10 16:33:53 UTC (rev 1705) @@ -186,6 +186,7 @@ foreach ($wikiedits as $ed) { preg_match('/\[\[.*\]\] ./', $ed, $matches); $page = $matches[0]; + $page_diff = str_replace("]]", "?action=diff|diff]]", $page); preg_match('/by \[\[.*\]\]/', $ed, $matches); $user = $matches[0]; preg_match("/\=(.*)\=/s",$ed,$matches); @@ -197,7 +198,7 @@ preg_match('/(..\:..)/',$date,$matches); $time = $matches[0]; $date = date("Y-m-d", $tstamp); - $description = "Wiki page $page edited $user"; + $description = "Wiki page $page edited $user ($page_diff)"; if ($tstamp > $last_wiki) { $events[] = array( 'cache_id' => $tstamp, 'tstamp' => $tstamp, 'icon' => $icon, 'date' => $date, 'time' => $time, 'user' => $user, 'description' => $description, 'notes' => $notes);