Changeset 22897 for lang/perl/Moxy
- Timestamp:
- 11/07/08 10:55:27 (2 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Moxy/trunk/lib/Moxy/Plugin/UserAgentSwitcher.pm
r10675 r22897 7 7 use URI::Escape; 8 8 use CGI; 9 use Encode (); 9 10 10 11 sub request_filter_process_agent :Hook { … … 61 62 sub ua_list { 62 63 my ($self, $context) = @_; 63 return $self->{__ua_list} ||= YAML::LoadFile( $self->assets_path($context)->file('useragent.yaml') ); 64 return $self->{__ua_list} ||= do { 65 my $yaml = Encode::decode_utf8 $self->assets_path($context)->file('useragent.yaml')->slurp; 66 YAML::Load( $yaml ); 67 }; 64 68 } 65 69
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)