eradicate split() in favour of explode()

git-svn-id: http://www.observium.org/svn/observer/trunk@2054 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-04-11 09:22:12 +00:00
parent fa24932616
commit 4bc15529d4
15 changed files with 19 additions and 18 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ function getImage($host)
if ($type == "linux")
{
$features = strtolower(trim($data['features']));
list($distro) = split(" ", $features);
list($distro) = explode(" ", $features);
if (file_exists($config['html_dir'] . "/images/os/$distro" . ".png")){ $image = '<img src="'.$config['base_url'].'/images/os/'.$distro.'.png" />';
} elseif (file_exists($config['html_dir'] . "/images/os/$distro" . ".gif")){ $image = '<img src="'.$config['base_url'].'/images/os/'.$distro.'.gif" />'; }
}