diff options
Diffstat (limited to 'h-source')
-rw-r--r-- | h-source/Application/Controllers/DownloadController.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/h-source/Application/Controllers/DownloadController.php b/h-source/Application/Controllers/DownloadController.php index a51fc1d..99fb06a 100644 --- a/h-source/Application/Controllers/DownloadController.php +++ b/h-source/Application/Controllers/DownloadController.php @@ -139,9 +139,13 @@ class DownloadController extends BaseController { $xml .= "\t\t<it_works>".$row['hardware']['fingerprint_works']."</it_works>\n"; } - - $devicesWithDriverEntry = array('printer','scanner','soundcard','webcam','bluetooth','wifi','videocard','acquisition-card','fingerprint-reader','3G-card'); - if (in_array($type,$devicesWithDriverEntry)) + + if ($type === 'ethernet-card') + { + $xml .= "\t\t<it_works>".$row['hardware']['ethernet_card_works']."</it_works>\n"; + } + + if ($type !== "notebook") { $xml .= "\t\t<driver>".$row['hardware']['driver']."</driver>\n"; } |