aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/DownloadController.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Controllers/DownloadController.php')
-rw-r--r--h-source/Application/Controllers/DownloadController.php12
1 files changed, 9 insertions, 3 deletions
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<it_works>".$row['hardware']['video_card_works']."</it_works>\n";
}
- if ($type === 'acquisition-card')
+ if ($type === 'acquisition-card' or $type === 'modem')
{
$xml .= "\t\t<it_works>".$row['hardware']['compatibility']."</it_works>\n";
}
@@ -163,8 +163,8 @@ class DownloadController extends BaseController
$xml .= "\t\t<description><![CDATA[".$row['hardware']['description']."]]></description>\n";
- $xml .= "\t\t<link>".$this->baseUrl."/".MyStrings::$reverse[$type]."/view/".$this->lang."/".$row['hardware']['id_hard']."/".encodeUrl($row['hardware']['model'])."</link>\n";
- $xml .= "\t\t<created_by>".$this->baseUrl."/".MyStrings::$reverse[$type]."/history/".$this->lang."/".$row['hardware']['id_hard']."</created_by>\n";
+ $xml .= "\t\t<link>".$this->baseUrl."/".Hardware::getControllerFromType($type)."/view/".$this->lang."/".$row['hardware']['id_hard']."/".encodeUrl($row['hardware']['model'])."</link>\n";
+ $xml .= "\t\t<created_by>".$this->baseUrl."/".Hardware::getControllerFromType($type)."/history/".$this->lang."/".$row['hardware']['id_hard']."</created_by>\n";
$xml .= "\t</device>\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