Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2014-02-23 20:50:37 +0400
committersgiehl <stefan@piwik.org>2014-02-23 20:50:37 +0400
commit569ee31b6e7110216cb1fbf27767c22490964b05 (patch)
treea2faa976d4ed293fd35c89da68050a58da918c30 /plugins/DevicesDetection
parentb87ddf006a29f0519208ce4f50a7ddcc9e5ed855 (diff)
removed unused methods
Diffstat (limited to 'plugins/DevicesDetection')
-rw-r--r--plugins/DevicesDetection/Controller.php26
-rw-r--r--plugins/DevicesDetection/functions.php2
2 files changed, 1 insertions, 27 deletions
diff --git a/plugins/DevicesDetection/Controller.php b/plugins/DevicesDetection/Controller.php
index 81dabfe2a3..a57e647e0a 100644
--- a/plugins/DevicesDetection/Controller.php
+++ b/plugins/DevicesDetection/Controller.php
@@ -65,32 +65,6 @@ class Controller extends \Piwik\Plugin\Controller
return $this->renderReport(__FUNCTION__);
}
- private function getArray(UserAgentParserEnhanced $UAParser)
- {
- $UADetails['config_browser_name'] = $UAParser->getBrowser("short_name");
- $UADetails['config_browser_version'] = $UAParser->getBrowser("version");
- $UADetails['config_os'] = $UAParser->getOs("short_name");
- $UADetails['config_os_version'] = $UAParser->getOs("version");
- $UADetails['config_device_type'] = $UAParser->getDevice();
- $UADetails['config_device_model'] = $UAParser->getModel();
- $UADetails['config_device_brand'] = $UAParser->getBrand();
- return $UADetails;
- }
-
- private function updateVisit($idVisit, $uaDetails)
- {
- $q = "UPDATE " . Common::prefixTable("log_visit") . " SET " .
- "config_browser_name = '" . $uaDetails['config_browser_name'] . "' ," .
- "config_browser_version = '" . $uaDetails['config_browser_version'] . "' ," .
- "config_os = '" . $uaDetails['config_os'] . "' ," .
- "config_os_version = '" . $uaDetails['config_os_version'] . "' ," .
- "config_device_type = " . (isset($uaDetails['config_device_type']) ? "'" . $uaDetails['config_device_type'] . "'" : "NULL") . " ," .
- "config_device_model = " . (isset($uaDetails['config_device_model']) ? "'" . $uaDetails['config_device_model'] . "'" : "NULL") . " ," .
- "config_device_brand = " . (isset($uaDetails['config_device_brand']) ? "'" . $uaDetails['config_device_brand'] . "'" : "NULL") . "
- WHERE idvisit = " . $idVisit;
- Db::query($q);
- }
-
public function deviceDetection()
{
Piwik::checkUserHasSomeAdminAccess();
diff --git a/plugins/DevicesDetection/functions.php b/plugins/DevicesDetection/functions.php
index 21cfa8ae33..edda97e72b 100644
--- a/plugins/DevicesDetection/functions.php
+++ b/plugins/DevicesDetection/functions.php
@@ -137,7 +137,7 @@ function getDeviceTypeLogo($label)
"car browser" => "carbrowser.png",
"camera" => "camera.png");
- if (!array_key_exists($label, $deviceTypeLogos) || $label == "Unknown") {
+ if (!array_key_exists($label, $deviceTypeLogos)) {
$label = 'unknown.gif';
} else {
$label = $deviceTypeLogos[$label];