Browse Source

Tweak on Host inclusion.

1.0
Andrs Montaez 13 years ago
parent
commit
38711cbac2
  1. 5
      Mage/Config.php

5
Mage/Config.php

@ -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…
Cancel
Save