- Timestamp:
- 05/11/07 11:23:20 (1 year ago)
- Files:
-
- trunk/autopackage2.php (modified) (1 diff)
- trunk/package.php (modified) (1 diff)
- trunk/patForms.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/autopackage2.php
r378 r392 59 59 - Fixed patTemplate dependency group (schst) 60 60 - patForms is now cabable to load custom modules from other directories (gERD) 61 - Fixed a bug when using an __autoload() function in combination with external modules (argh) 61 62 62 63 * Elements trunk/package.php
r378 r392 56 56 - Fixed patTemplate dependency group (schst) 57 57 - patForms is now cabable to load custom modules from other directories (gERD) 58 - Fixed a bug when using an __autoload() function in combination with external modules (argh) 58 59 59 60 * Elements trunk/patForms.php
r378 r392 599 599 return true; 600 600 } 601 601 602 602 /** 603 603 * add a base directory where patForms should search for … … 607 607 * 608 608 * patForms will be searching for a module in the same 609 * order you added them. It will first look in module specific 610 * directory (added with addModuleDir()), afterwards in module 611 * base dirs. If the module cannot be found in the custom 609 * order you added them. It will first look in module specific 610 * directory (added with addModuleDir()), afterwards in module 611 * base dirs. If the module cannot be found in the custom 612 612 * folders, it will look in patForms/$moduleType. 613 613 * … … 615 615 * @access public 616 616 * @param string|array directory or directories to search. 617 * @see addModuleDir() 617 * @see addModuleDir() 618 618 */ 619 619 function addModuleBaseDir($dir) … … 1534 1534 1535 1535 /** 1536 * load module class 1536 * load module class 1537 1537 * 1538 1538 * @access private … … 1544 1544 { 1545 1545 $moduleClass = 'patForms_'.$type.'_'.$name; 1546 if (class_exists($moduleClass )) {1546 if (class_exists($moduleClass,false)) { 1547 1547 return $moduleClass; 1548 1548 } … … 1550 1550 if ($hasBaseClass) { 1551 1551 $baseClass = 'patForms_'.$type; 1552 if (!class_exists( $baseClass )) {1552 if (!class_exists( $baseClass,false)) { 1553 1553 $baseFile = PATFORMS_INCLUDE_PATH . '/'.$type.'.php'; 1554 1554 if (!file_exists($baseFile)) { … … 1563 1563 } 1564 1564 1565 /* 1565 /* 1566 1566 * if there is an underscore in the module name, we want 1567 1567 * to load the module from a subfolder, so we transform 1568 1568 * all underscores to slashes. 1569 */ 1569 */ 1570 1570 $pathName = $name; 1571 1571 if (strstr($pathName, '_' )) { … … 1588 1588 // patForms standard folder 1589 1589 $moduleDirs[$type][] = PATFORMS_INCLUDE_PATH . '/' . $type; 1590 1590 1591 1591 $found = false; 1592 1592 foreach ($moduleDirs[$type] as $dir) {
