[pLog-svn] r5044 - plog/branches/lifetype-1.2/class/mail/phpmailer

Reto Hugi plog at hugi.to
Tue Mar 13 03:57:20 EDT 2007


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 @@
>>>>     }
>>>> }



More information about the pLog-svn mailing list