mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Tweak on Host inclusion.
This commit is contained in:
		
							parent
							
								
									776b21ce08
								
							
						
					
					
						commit
						38711cbac2
					
				@ -54,7 +54,10 @@ class Mage_Config
 | 
				
			|||||||
            } else if (is_string($config['hosts'])) {
 | 
					            } else if (is_string($config['hosts'])) {
 | 
				
			||||||
                $fileContent = fopen($config['hosts'], 'r');
 | 
					                $fileContent = fopen($config['hosts'], 'r');
 | 
				
			||||||
                while (($host = fgets($fileContent)) == true) {
 | 
					                while (($host = fgets($fileContent)) == true) {
 | 
				
			||||||
                    $hosts[] = trim($host);
 | 
					                    $host = trim($host);
 | 
				
			||||||
 | 
					                    if ($host != '') {
 | 
				
			||||||
 | 
					                        $hosts[] = $host;                        
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user