summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Winkelmann <jw@smts.ch>2006-08-10 21:12:00 +0000
committerJohannes Winkelmann <jw@smts.ch>2006-08-10 21:12:00 +0000
commitf7c9c6e30e655c6f09c65dd37363551b86568911 (patch)
tree83fe26e7488eff9d286d6b6d452ea6cd8a16c3fa
parent1fab3dbe9d94f866a51dc6415435379b7abf3589 (diff)
downloadwebtools-f7c9c6e30e655c6f09c65dd37363551b86568911.tar.gz
webtools-f7c9c6e30e655c6f09c65dd37363551b86568911.tar.xz
timeline: link anchors in diff link
-rwxr-xr-xtimeline/tlcacher.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/timeline/tlcacher.php b/timeline/tlcacher.php
index 868a222..1a407ac 100755
--- a/timeline/tlcacher.php
+++ b/timeline/tlcacher.php
@@ -188,7 +188,6 @@ if ($chline != "") {
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 @@ if ($chline != "") {
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,

Generated by cgit