diff options
author | alecpl <alec@alec.pl> | 2008-10-18 09:57:08 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-10-18 09:57:08 +0000 |
commit | bfdbcf52100c707e1aee3993e7fe6216a73e85f2 (patch) | |
tree | a81ddeb6f7bbe7d94d4ffa566aafb59fa9983476 /program/include/iniset.php | |
parent | 19c9d396df708052fd7ea774aa809f161cf8eac2 (diff) |
#1485505: PHP bug (?) workaround for html2text class autoloading
Diffstat (limited to 'program/include/iniset.php')
-rwxr-xr-x | program/include/iniset.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/program/include/iniset.php b/program/include/iniset.php index f81c04a90..2be15b1a5 100755 --- a/program/include/iniset.php +++ b/program/include/iniset.php @@ -75,8 +75,18 @@ if(extension_loaded('mbstring')) function __autoload($classname) { $filename = preg_replace( - array('/MDB2_(.+)/', '/Mail_(.+)/', '/^html_.+/', '/^utf8$/'), - array('MDB2/\\1', 'Mail/\\1', 'html', 'utf8.class'), + array('/MDB2_(.+)/', + '/Mail_(.+)/', + '/^html_.+/', + '/^utf8$/', + '/html2text/' + ), + array('MDB2/\\1', + 'Mail/\\1', + 'html', + 'utf8.class', + 'lib/html2text' // see #1485505 + ), $classname ); include_once $filename. '.php'; |