mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Allow for both ways to find composer's autoload
This commit is contained in:
		
							parent
							
								
									09e2ad6a1f
								
							
						
					
					
						commit
						892a60c574
					
				
							
								
								
									
										4
									
								
								bin/mage
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								bin/mage
									
									
									
									
									
								
							@ -16,7 +16,9 @@ $baseDir = dirname(dirname(__FILE__));
 | 
				
			|||||||
define('MAGALLANES_VERSION', '1.0.3');
 | 
					define('MAGALLANES_VERSION', '1.0.3');
 | 
				
			||||||
define('MAGALLANES_DIRECTORY', $baseDir);
 | 
					define('MAGALLANES_DIRECTORY', $baseDir);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (file_exists(__DIR__ . '/../../../autoload.php')) {
 | 
					if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
 | 
				
			||||||
 | 
					    require_once __DIR__ . '/../vendor/autoload.php';
 | 
				
			||||||
 | 
					} else if (file_exists(__DIR__ . '/../../../autoload.php')) {
 | 
				
			||||||
    require_once __DIR__ . '/../../../autoload.php';
 | 
					    require_once __DIR__ . '/../../../autoload.php';
 | 
				
			||||||
} else {
 | 
					} else {
 | 
				
			||||||
    require_once $baseDir . '/Mage/Autoload.php';
 | 
					    require_once $baseDir . '/Mage/Autoload.php';
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user