Mailing List Archive

Re: cvs commit: modperl-docs/src/docs/2.0/user/porting compat.pod
geoff@apache.org wrote:
> geoff 2004/01/15 06:33:40
>
> Modified: src/docs/2.0/api/Apache ServerUtil.pod
> src/docs/2.0/api/ModPerl RegistryLoader.pod
> src/docs/2.0/user/porting compat.pod
> Log:
> updates for server_root_relative()
>
> Revision Changes Path
> 1.8 +1 -1 modperl-docs/src/docs/2.0/api/Apache/ServerUtil.pod
>
> Index: ServerUtil.pod
> ===================================================================
> RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/Apache/ServerUtil.pod,v
> retrieving revision 1.7
> retrieving revision 1.8
> diff -u -r1.7 -r1.8
> --- ServerUtil.pod 14 Jan 2004 23:39:22 -0000 1.7
> +++ ServerUtil.pod 15 Jan 2004 14:33:40 -0000 1.8
> @@ -13,7 +13,7 @@
> my $srv_cfg = $s->dir_config;
>
> # get 'conf/' dir path using $r
> - my $conf_dir = $s->server_root_relative('conf', $r->pool);
> + my $conf_dir = $s->server_root_relative($r->pool, 'conf');

this doesn't look right, should it be:

my $conf_dir = $s->server_root_relative('conf');

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org
Re: cvs commit: modperl-docs/src/docs/2.0/user/porting compat.pod [ In reply to ]
# get 'conf/' dir path using $r
>> - my $conf_dir = $s->server_root_relative('conf', $r->pool);
>> + my $conf_dir = $s->server_root_relative($r->pool, 'conf');
>
>
> this doesn't look right, should it be:
>
> my $conf_dir = $s->server_root_relative('conf');

whoops, yeah - I saw that the args were mixed up, not where it was called from.

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org
Re: cvs commit: modperl-docs/src/docs/2.0/user/porting compat.pod [ In reply to ]
Geoffrey Young wrote:
> # get 'conf/' dir path using $r
>
>>> - my $conf_dir = $s->server_root_relative('conf', $r->pool);
>>> + my $conf_dir = $s->server_root_relative($r->pool, 'conf');
>>
>>
>>this doesn't look right, should it be:
>>
>> my $conf_dir = $s->server_root_relative('conf');
>
>
> whoops, yeah - I saw that the args were mixed up, not where it was called from.

Also now we need to copy/adjust this entry from Apache/ServerUtil to these two
man pages as well: Apache::Connection and Apache::RequestRec.

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org