Changeset 24453
- Timestamp:
- 11/20/08 17:08:33 (7 weeks ago)
- Files:
-
- 1 modified
-
lang/perl/NanoA/trunk/lib/NanoA.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/NanoA/trunk/lib/NanoA.pm
r24452 r24453 24 24 my $self = bless { 25 25 config => $config, 26 query => undef, 26 query => sub { 27 require_once('CGI/Simple.pm'); 28 no warnings "all"; # suppress 'used only once' 29 $CGI::Simple::PARAM_UTF8 = 1; 30 CGI::Simple->new(); 31 }, 27 32 headers => { 28 33 -type => 'text/html', … … 58 63 return $self->{query} = shift 59 64 if @_; 60 if ($self->{query} && ref $self->{query} eq 'CODE') { 61 $self->{query} = $self->{query}->($self); 62 } 63 unless ($self->{query}) { 64 require_once('CGI/Simple.pm'); 65 no warnings "all"; # suppress 'used only once' 66 $CGI::Simple::PARAM_UTF8 = 1; 67 $self->{query} = CGI::Simple->new; 68 } 65 $self->{query} = $self->{query}->($self) 66 if ref $self->{query} eq 'CODE'; 69 67 $self->{query}; 70 68 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)