From 93f681d5bd99d28acdb1e4c6eb3e5bbc4a6842bf Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 9 Sep 2012 14:08:19 +0000 Subject: added the entry: 'does the device prevent the installation of wifi cards not-approved by the vendor?' - part 1 --- h-source/Application/Controllers/DownloadController.php | 1 + h-source/Application/Controllers/NotebooksController.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'h-source/Application/Controllers') diff --git a/h-source/Application/Controllers/DownloadController.php b/h-source/Application/Controllers/DownloadController.php index 98f362e..c8e79c9 100644 --- a/h-source/Application/Controllers/DownloadController.php +++ b/h-source/Application/Controllers/DownloadController.php @@ -72,6 +72,7 @@ class DownloadController extends BaseController $xml .= "\t\t".translate($row['hardware']['architecture'])."\n"; $xml .= "\t\t".$row['hardware']['bios']."\n"; $xml .= "\t\t".$row['hardware']['can_free_systems_be_installed']."\n"; + $xml .= "\t\t".$row['hardware']['prevent_wifi']."\n"; } $xml .= "\t\t".$row['hardware']['model']."\n"; diff --git a/h-source/Application/Controllers/NotebooksController.php b/h-source/Application/Controllers/NotebooksController.php index f84be07..9222743 100644 --- a/h-source/Application/Controllers/NotebooksController.php +++ b/h-source/Application/Controllers/NotebooksController.php @@ -55,6 +55,7 @@ class NotebooksController extends GenericController "+++++++checkIsStrings|".Notebooks::webcamList() => "webcam_works", "++++++++checkIsStrings|".Notebooks::architectureList() => "architecture", "+++++++++checkIsStrings|".Notebooks::$installableSelect => "can_free_systems_be_installed", + "++++++++++checkIsStrings|".Notebooks::preventWifiList() => "prevent_wifi", ); $this->m['HardwareModel']->strongConditions['insert'] = $this->m['HardwareModel']->strongConditions['update']; @@ -71,7 +72,7 @@ class NotebooksController extends GenericController $this->m['HardwareModel']->softConditions['insert'] = $this->m['HardwareModel']->softConditions['update']; - $this->m['HardwareModel']->setFields('vendor,model,compatibility,kernel,description,distribution,video_card_type,video_card_works,wifi_type,wifi_works,comm_year,subtype,bios,can_free_systems_be_installed,webcam_type,webcam_works,architecture','sanitizeAll'); + $this->m['HardwareModel']->setFields('vendor,model,compatibility,kernel,description,distribution,video_card_type,video_card_works,wifi_type,wifi_works,comm_year,subtype,bios,can_free_systems_be_installed,webcam_type,webcam_works,architecture,prevent_wifi','sanitizeAll'); $argKeys = array( 'page:forceNat' => 1, -- cgit v1.2.3