Re: Minor patch to fix ApacheHandler.pm to work under recent mod_perl 2.0
John Williams <[email protected]> Tue, 21 Jun 2005 10:44:23 -0600 (MDT)
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
What are the circumstance under which this is needed?
make_ah is called by the handler function, so it should always have a
valid $r.
~ John Williams
On Tue, 21 Jun 2005, Christopher Nehren wrote:
> Please find attached a one-line diff which allows a user to run Mason
> under the recent mod_perl 2.0 API. I haven't had much chance to test it
> on a real site as I'm actually just starting out with Mason. However,
> all of the tests that come with Mason do pass.
>
--- ApacheHandler.pm 10 Jun 2005 22:22:11 -0000 1.327
+++ ApacheHandler.pm 21 Jun 2005 01:36:23 -0000
@@ -345,7 +345,7 @@
{
my ($package, $r) = @_;
- my $config = $r->dir_config;
+ my $config = $r ? $r->dir_config : _get_apache_server->dir_config;
#
# If the user has virtual hosts, each with a different document
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click