dougm       2002/10/06 22:04:13

  Modified:    lib/Apache compat.pm
  Log:
  Submitted by: gozer
  Reviewed by:  dougm
  prefer Apache->request to Apache->server in httpd_conf method
  
  Revision  Changes    Path
  1.68      +2 -1      modperl-2.0/lib/Apache/compat.pm
  
  Index: compat.pm
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/lib/Apache/compat.pm,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- compat.pm 7 Oct 2002 02:44:30 -0000       1.67
  +++ compat.pm 7 Oct 2002 05:04:13 -0000       1.68
  @@ -112,7 +112,8 @@
   
   sub httpd_conf {
       shift;
  -    my $err = Apache->server->add_config([split /\n/, join '', @_]);
  +    my $err = (Apache->request || Apache->server)->
  +      add_config([split /\n/, join '', @_]);
       die $err if $err;
   }
   
  
  
  


Reply via email to