On 16 Feb 2012, at 21:08, Tanstaafl wrote:
> On 2012-02-16 3:52 PM, David Goodwin <da...@co...> wrote:
>> Hi,
>>
>> No - your change would not work, as the include path would resolve through to :
>>
>>
>> if (file_exists(dirname(__FILE__) '/etc/postfixadmin/config.local.php')) {
>> include(dirname(__FILE__) '/etc/postfixadmin/config.local.php');
>>
>> /etc/postfixadmin/etc/postfixadmin/config.local.php or something like that.
>>
>> You should remove the idrname(__FILE__) bit and it would be fine.
>
> Ok, but would that be the recommended way?
>
Yes.
> I'm still confused as to why/how to change this officially so that postfixadmin defaults to using this directory...
You shouldn't need to do anything by default -
>> if (file_exists(dirname(__FILE__) '/etc/postfixadmin/config.local.php')) {
>> include(dirname(__FILE__) . '/config.local.php');
Should be the default.
Alternatively,
>> if (file_exists(dirname(__FILE__) '/etc/postfixadmin/config.local.php')) {
>> include( '/etc/postfixadmin/config.local.php');
Thanks
David.
|