[pLog-svn] r5044 - plog/branches/lifetype-1.2/class/mail/phpmailer
Jon Daley
plogworld at jon.limedaley.com
Tue Mar 13 05:01:04 EDT 2007
Ah, I see, include_once is being called from the current
directory, so it works, but lt_include is being called from a different
directory, so relative paths don't work.
On Tue, 13 Mar 2007, Reto Hugi wrote:
> Jon Daley wrote:
>> Are you saying the path we are giving include_once is incorrect,
>> but PHP discovers that it is wrong, and then looks in the current
>> directory instead?
>
> yes and no :) $this->PluginDir defaults to '' (empty string) at the top
> of the class. $this->PluginDir . "class.smtp.php" therefore results in
> "class.smtp.php". and as the class.smtp.php file is in the same
> directory as the including class (class.phpmailer.php) it's not a
> problem. but it would not work if lt_include() would include the class.
>
>
>>>>> Modified: plog/branches/lifetype-1.2/class/mail/phpmailer/class.phpmailer.php
>>>>> ===================================================================
>>>>> --- plog/branches/lifetype-1.2/class/mail/phpmailer/class.phpmailer.php 2007-03-11 00:21:11 UTC (rev 5043)
>>>>> +++ plog/branches/lifetype-1.2/class/mail/phpmailer/class.phpmailer.php 2007-03-11 00:22:45 UTC (rev 5044)
>>>>> @@ -457,7 +457,7 @@
>>>>> * @return bool
>>>>> */
>>>>> function SmtpSend($header, $body) {
>>>>> - lt_include($this->PluginDir . "class.smtp.php");
>>>>> + include_once($this->PluginDir . "class.smtp.php");
>>>>> $error = "";
>>>>> $bad_rcpt = array();
>>>>>
>>>>> @@ -1496,4 +1496,4 @@
>>>>> }
>>>>> }
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
--
Jon Daley
http://jon.limedaley.com/
Many people are calling our name. The challenge is:
which call will you respond to?
Need to tell all other voices to hush!!
-- Jubilee 2000
More information about the pLog-svn
mailing list