Skip to content

Commit

Permalink
use _fallbacks as a function instead of method
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 28, 2014
1 parent f077d47 commit 5d18678
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -195,8 +195,8 @@ sub render_exception {
};
my $inline = $renderer->_bundled(
$mode eq 'development' ? 'exception.development' : 'exception');
return $self if $self->_fallbacks($options, 'exception', $inline);
$self->_fallbacks({%$options, format => 'html'}, 'exception', $inline);
return $self if _fallbacks($self, $options, 'exception', $inline);
_fallbacks($self, {%$options, format => 'html'}, 'exception', $inline);
return $self;
}

Expand All @@ -216,8 +216,8 @@ sub render_not_found {
= {template => "not_found.$mode", format => $format, status => 404};
my $inline = $renderer->_bundled(
$mode eq 'development' ? 'not_found.development' : 'not_found');
return $self if $self->_fallbacks($options, 'not_found', $inline);
$self->_fallbacks({%$options, format => 'html'}, 'not_found', $inline);
return $self if _fallbacks($self, $options, 'not_found', $inline);
_fallbacks($self, {%$options, format => 'html'}, 'not_found', $inline);
return $self;
}

Expand Down

0 comments on commit 5d18678

Please sign in to comment.