Skip to content

Commit

Permalink
removed some more legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 16, 2012
1 parent 01e5ca8 commit fee3680
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -327,19 +327,12 @@ sub render_not_found {
return if $stash->{'mojo.exception'};
return if $stash->{'mojo.not_found'};

# Check for POD plugin
my $guide =
$self->app->renderer->helpers->{pod_to_html}
? $self->url_for('/perldoc')
: 'http://mojolicio.us/perldoc';

# Render with fallbacks
my $mode = $self->app->mode;
my $options = {
template => "not_found.$mode",
format => $stash->{format} || 'html',
status => 404,
guide => $guide,
'mojo.not_found' => 1
};
my $inline = $mode eq 'development' ? $DEV_NOT_FOUND : $NOT_FOUND;
Expand Down

0 comments on commit fee3680

Please sign in to comment.