alecpl
2008-10-18 bfdbcf52100c707e1aee3993e7fe6216a73e85f2
#1485505: PHP bug (?) workaround for html2text class autoloading


1 files modified
14 ■■■■ changed files
program/include/iniset.php 14 ●●●● patch | view | raw | blame | history
program/include/iniset.php
@@ -75,8 +75,18 @@
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';