- support PEAR::Net_* in __autoload()

release-0.6
alecpl 16 years ago
parent 35749f91d2
commit 70306a4c75

@ -83,12 +83,14 @@ function __autoload($classname)
$filename = preg_replace( $filename = preg_replace(
array('/MDB2_(.+)/', array('/MDB2_(.+)/',
'/Mail_(.+)/', '/Mail_(.+)/',
'/Net_(.+)/',
'/^html_.+/', '/^html_.+/',
'/^utf8$/', '/^utf8$/',
'/html2text/' '/html2text/'
), ),
array('MDB2/\\1', array('MDB2/\\1',
'Mail/\\1', 'Mail/\\1',
'Net/\\1',
'html', 'html',
'utf8.class', 'utf8.class',
'lib/html2text' // see #1485505 'lib/html2text' // see #1485505

@ -25,10 +25,6 @@
* @package Mail * @package Mail
*/ */
// include required PEAR classes
require_once('Net/SMTP.php');
// define headers delimiter // define headers delimiter
define('SMTP_MIME_CRLF', "\r\n"); define('SMTP_MIME_CRLF', "\r\n");

Loading…
Cancel
Save