From 3a6c22bc278564806c8c10551200447bb4176f0f Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Sat, 22 Oct 2005 00:43:35 +0000 Subject: [PATCH] (PrintHtmlDiff): Don't use $revNew-1 as the default for the old revision if no new revision was specified, as suggested by Markus Lude on the wiki. --- wiki.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiki.pl b/wiki.pl index 1dfb9f1e..5195c966 100755 --- a/wiki.pl +++ b/wiki.pl @@ -258,7 +258,7 @@ sub InitRequest { sub InitVariables { # Init global session variables for mod_perl! $WikiDescription = $q->p($q->a({-href=>'http://www.oddmuse.org/'}, 'Oddmuse')) - . $q->p(q{$Id: wiki.pl,v 1.619 2005/10/21 08:18:19 as Exp $}); + . $q->p(q{$Id: wiki.pl,v 1.620 2005/10/22 00:43:35 as Exp $}); $WikiDescription .= $ModulesDescription if $ModulesDescription; $PrintedHeader = 0; # Error messages don't print headers unless necessary $ReplaceForm = 0; # Only admins may search and replace @@ -2299,7 +2299,7 @@ sub PrintHtmlDiff { if ($diffType == 1) { $revOld = $Page{'oldmajor'}; } else { - $revOld = $revNew - 1; + $revOld = $revNew - 1 if $revNew; } } if ($revOld) {