Navigation Menu

Skip to content

Commit

Permalink
Update Mobile Detect library
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra committed Apr 12, 2017
1 parent fdb58eb commit 0432624
Show file tree
Hide file tree
Showing 11 changed files with 691 additions and 269 deletions.
10 changes: 6 additions & 4 deletions frontend/class-detect.php
Expand Up @@ -96,8 +96,9 @@ public function detect_device()

$is_allowed_tablets = $this->is_allowed_tablets();

if (!class_exists('WMP_Mobile_Detect'))
require_once (WMP_PLUGIN_PATH.'libs/Mobile-Detect-2.8.12/Mobile_Detect.php');
if (!class_exists('WMP_Mobile_Detect')) {
require_once (WMP_PLUGIN_PATH.'libs/Mobile-Detect-2.8.25/Mobile_Detect.php');
}

$detect = new WMP_Mobile_Detect();

Expand Down Expand Up @@ -160,8 +161,9 @@ public function is_tablet() {
$is_tablet = false;
$is_IE_tablet = false;

if (!class_exists('WMP_Mobile_Detect'))
require_once (WMP_PLUGIN_PATH.'libs/Mobile-Detect-2.8.12/Mobile_Detect.php');
if (!class_exists('WMP_Mobile_Detect')) {
require_once (WMP_PLUGIN_PATH.'libs/Mobile-Detect-2.8.25/Mobile_Detect.php');
}

$detect = new WMP_Mobile_Detect();

Expand Down
1 change: 0 additions & 1 deletion libs/Mobile-Detect-2.8.12/Mobile_Detect.json

This file was deleted.

224 changes: 0 additions & 224 deletions libs/Mobile-Detect-2.8.12/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion libs/Mobile-Detect-2.8.12/LICENSE.txt → libs/Mobile-Detect-2.8.25/LICENSE.txt 100644 → 100755
@@ -1,6 +1,6 @@
MIT License

Copyright (c) <2011-2014> <Serban Ghita> <serbanghita@gmail.com>
Copyright (c) <2011-2015> Serban Ghita, Nick Ilyin and contributors.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
1 change: 1 addition & 0 deletions libs/Mobile-Detect-2.8.25/Mobile_Detect.json

Large diffs are not rendered by default.

0 comments on commit 0432624

Please sign in to comment.