Changeset 311 for trunk/lib/Epoll/View/Mail.pm
- Timestamp:
- 05/22/10 18:37:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Epoll/View/Mail.pm
r242 r311 11 11 INCLUDE_PATH => Epoll->path_to( 'root', 'mail' ), 12 12 PLUGIN_BASE => 'Epoll::Template::Plugin', 13 PRE_PROCESS => [ 'includes/loc.tt', ], 13 14 ); 14 15 … … 25 26 sub render { 26 27 my ($self, $c, $template, $args) = @_; 28 29 my ($locale) = split(';', $c->req->header('Accept-Language') || ''); 30 if (my $plocale = ($c->req->param('locale')|| $c->session->{'locale'})) { 31 $c->session->{'locale'} = $locale = $plocale; 32 } 33 $c->languages($locale ? [ $locale ] : ''); 34 $c->stash->{locale} = $locale; 27 35 28 36 $ENV{MAILADDRESS} = $args->{From};
Note: See TracChangeset
for help on using the changeset viewer.