From bb576261aa6ed4ec90b5428f9ac9519f8eb12d03 Mon Sep 17 00:00:00 2001 From: uckelman Date: Tue, 26 Jun 2001 18:03:41 +0000 Subject: [PATCH] Added $version to RetrievePage calls. Changed to recognize $ver1 and $ver2 in URLs to allow diffs of aribtrary page versions. git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@511 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/diff.php | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/lib/diff.php b/lib/diff.php index 7c174375b..e6ab21a83 100644 --- a/lib/diff.php +++ b/lib/diff.php @@ -1,5 +1,5 @@ \n"; - if (is_array($wiki) && is_array($archive)) + if (is_array($newer) && is_array($older)) { - $diff = new WikiDiff($archive['content'], $wiki['content']); + $diff = new WikiDiff($older['content'], $newer['content']); if ($diff->isEmpty()) { $html .= '
[' . gettext ("Versions are identical") . ']'; } else { //$fmt = new WikiDiffFormatter; $fmt = new WikiUnifiedDiffFormatter; - $html .= $fmt->format($diff, $archive['content']); + $html .= $fmt->format($diff, $older['content']); } } -- 2.45.0