[Jifty-commit] r6996 - wifty/trunk/lib/Wifty
Jifty commits
jifty-commit at lists.jifty.org
Tue May 12 02:31:35 EDT 2009
Author: ruz
Date: Tue May 12 02:31:34 2009
New Revision: 6996
Modified:
wifty/trunk/lib/Wifty/Dispatcher.pm
Log:
* redispatch errors
Modified: wifty/trunk/lib/Wifty/Dispatcher.pm
==============================================================================
--- wifty/trunk/lib/Wifty/Dispatcher.pm (original)
+++ wifty/trunk/lib/Wifty/Dispatcher.pm Tue May 12 02:31:34 2009
@@ -155,6 +155,15 @@
show('/user/stats');
};
+sub error {
+ my ($action, $reason) = @_;
+ foreach my $page ( map { "error/$_" } "$action/$reason", "$reason", "$action", "" ) {
+ next unless $Jifty::Dispatcher::Dispatcher->template_exists($page);
+ show($page);
+ return;
+ }
+}
+
sub setup_page_nav {
my ($prefix, $page, $rev) = @_;
More information about the Jifty-commit
mailing list