summaryrefslogtreecommitdiffstats
path: root/lib/Narwhal
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Narwhal')
-rw-r--r--lib/Narwhal/Component/Wiki.pm4
-rw-r--r--lib/Narwhal/Component/Wiki/Edit.pm2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Narwhal/Component/Wiki.pm b/lib/Narwhal/Component/Wiki.pm
index ce1fbbf..f923261 100644
--- a/lib/Narwhal/Component/Wiki.pm
+++ b/lib/Narwhal/Component/Wiki.pm
@@ -3,7 +3,7 @@ use Moose;
with 'Narwhal::Component::Role::Wiki';
-sub page {
+sub view {
my $self = shift;
my ($req, $page_name) = @_;
@@ -31,7 +31,7 @@ sub page {
);
}
-sub old_page {
+sub view_old {
my $self = shift;
my ($req, $page_name, $rev) = @_;
diff --git a/lib/Narwhal/Component/Wiki/Edit.pm b/lib/Narwhal/Component/Wiki/Edit.pm
index 3631e84..101739e 100644
--- a/lib/Narwhal/Component/Wiki/Edit.pm
+++ b/lib/Narwhal/Component/Wiki/Edit.pm
@@ -56,7 +56,7 @@ sub post {
my $res = $req->new_response(303);
$res->location(
$req->uri_for({
- action => 'page',
+ action => 'view',
page_name => $page_name,
})
);