diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-02-18 10:12:12 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-02-18 11:52:22 -0600 |
commit | 62a18e4d0e05f5d8ef18a7c25456213060e39521 (patch) | |
tree | 3496d4e995888784f13eba628b9d17a11bdfd061 /lib/Narwhal/Component | |
parent | 1ffb8c7688a3ecc947c81bccbd406f277c9d853a (diff) | |
download | narwhal-62a18e4d0e05f5d8ef18a7c25456213060e39521.tar.gz narwhal-62a18e4d0e05f5d8ef18a7c25456213060e39521.zip |
make sure we're showing the historical view of the right page
Diffstat (limited to 'lib/Narwhal/Component')
-rw-r--r-- | lib/Narwhal/Component/Wiki.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Narwhal/Component/Wiki.pm b/lib/Narwhal/Component/Wiki.pm index e3eb254..ce1fbbf 100644 --- a/lib/Narwhal/Component/Wiki.pm +++ b/lib/Narwhal/Component/Wiki.pm @@ -37,7 +37,7 @@ sub old_page { my $page_rev = $self->lookup($rev); return $req->new_response(404) - unless $page_rev; + unless $page_rev && $page_rev->page_id eq $page_name; $self->render( $req, |