FIX Add test code to detect/test autoload conflict
This commit is contained in:
parent
e6a95b2af9
commit
2308d28c19
@ -263,6 +263,12 @@ class AutoLoader
|
||||
* @return bool false unless className now exists
|
||||
*/
|
||||
private function loadLastResort($className, $loader = null) {
|
||||
// DOL_LDR Add protection to avoid conflict with other autouploader
|
||||
/*print 'Try to load '.$className."\n";
|
||||
if (in_array($className, array('Google_Client')))
|
||||
{
|
||||
return false;
|
||||
}*/
|
||||
$loaders = array_unique(static::$rogueLoaders);
|
||||
if (isset($loader)) {
|
||||
if (false === array_search($loader, $loaders))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user