r1711 - tools/webtools/timeline
Author: jw Date: 2006-08-10 23:40:11 +0200 (Thu, 10 Aug 2006) New Revision: 1711 Modified: tools/webtools/timeline/tlcacher.php Log: timeline: introduce proper anchors for wiki diff links Modified: tools/webtools/timeline/tlcacher.php =================================================================== --- tools/webtools/timeline/tlcacher.php 2006-08-10 21:12:00 UTC (rev 1710) +++ tools/webtools/timeline/tlcacher.php 2006-08-10 21:40:11 UTC (rev 1711) @@ -199,7 +199,9 @@ preg_match('/(..\:..)/',$date,$matches); $time = $matches[0]; $date = date("Y-m-d", $tstamp); - $page_diff = trim(str_replace("]]", "?action=diff#$date $time|diff]]", $page)); + + $action = "?action=diff#" . urlencode($date . " " . $time) . "|diff"; + $page_diff = trim(str_replace("]]", $action."]]", $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