Skip to content

Commit

Permalink
Item15137: fix REVINFO with a rev="0" parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed May 24, 2022
1 parent 35e5276 commit b382f0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lib/Foswiki/Macros/REVINFO.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ sub REVINFO {

( $web, $topic ) = $this->normalizeWebTopicName( $web, $topic );
my $loadedRev = $topicObject->getLoadedRev();
$rev ||= $loadedRev;

if ( $web ne $topicObject->web
|| $topic ne $topicObject->topic
|| !defined($loadedRev)
Expand All @@ -49,7 +51,7 @@ sub REVINFO {
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2009 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2022 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down

0 comments on commit b382f0a

Please sign in to comment.