summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/index.php b/index.php
index 1ecf1f9f5..53901ec6e 100644
--- a/index.php
+++ b/index.php
@@ -18,9 +18,14 @@
$mobile = new Mobile_Detect();
- if ($mobile->isMobile() && !$mobile->isTablet() && !$_REQUEST['mobile']) {
- header('Location: mobile/index.php');
- exit;
+ if (!$_REQUEST['mobile']) {
+ if ($mobile->isTablet()) {
+ header('Location: digest.php');
+ exit;
+ } else if ($mobile->isMobile()) {
+ header('Location: mobile/index.php');
+ exit;
+ }
}
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);