From 7d294873ca1b9705652592523210f543e73ec1e1 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Mon, 17 Oct 2011 22:26:06 +0000 Subject: added modems category - michael issue --- h-source/Application/Controllers/DownloadController.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'h-source/Application/Controllers/DownloadController.php') diff --git a/h-source/Application/Controllers/DownloadController.php b/h-source/Application/Controllers/DownloadController.php index bc433c4..8767f6b 100644 --- a/h-source/Application/Controllers/DownloadController.php +++ b/h-source/Application/Controllers/DownloadController.php @@ -136,7 +136,7 @@ class DownloadController extends BaseController $xml .= "\t\t".$row['hardware']['video_card_works']."\n"; } - if ($type === 'acquisition-card') + if ($type === 'acquisition-card' or $type === 'modem') { $xml .= "\t\t".$row['hardware']['compatibility']."\n"; } @@ -163,8 +163,8 @@ class DownloadController extends BaseController $xml .= "\t\t\n"; - $xml .= "\t\t".$this->baseUrl."/".MyStrings::$reverse[$type]."/view/".$this->lang."/".$row['hardware']['id_hard']."/".encodeUrl($row['hardware']['model'])."\n"; - $xml .= "\t\t".$this->baseUrl."/".MyStrings::$reverse[$type]."/history/".$this->lang."/".$row['hardware']['id_hard']."\n"; + $xml .= "\t\t".$this->baseUrl."/".Hardware::getControllerFromType($type)."/view/".$this->lang."/".$row['hardware']['id_hard']."/".encodeUrl($row['hardware']['model'])."\n"; + $xml .= "\t\t".$this->baseUrl."/".Hardware::getControllerFromType($type)."/history/".$this->lang."/".$row['hardware']['id_hard']."\n"; $xml .= "\t\n"; } @@ -256,4 +256,10 @@ class DownloadController extends BaseController { $this->printXml($lang, array('type'=>'sd-card-reader','-deleted'=>'no')); } + + public function modems($lang = 'en') + { + $this->printXml($lang, array('type'=>'modem','-deleted'=>'no')); + } + } \ No newline at end of file -- cgit v1.2.3