aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2012-11-07 09:42:28 +0000
committerpatdenice <patdenice@piwigo.org>2012-11-07 09:42:28 +0000
commit294b6e91b2153641b252c7379a45005d44967f86 (patch)
tree0b94625cacc2cb1a5955766decffe36ff7706906 /include/functions.inc.php
parent18f7349ea488584c303c745ae25fce89133c2e8c (diff)
bug:2687
bug:2778 Unable to switch from mobile theme to classic theme with incompatible plugins. Detect blackberry and symbian for mobile theme. Update mdetect class. git-svn-id: http://piwigo.org/svn/trunk@18967 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r--include/functions.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index b2238f817..2a1abcd89 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -1620,7 +1620,7 @@ function get_device()
{
include_once(PHPWG_ROOT_PATH.'include/mdetect.php');
$uagent_obj = new uagent_info();
- if ($uagent_obj->DetectTierIphone())
+ if ($uagent_obj->DetectSmartphone())
{
$device = 'mobile';
}
@@ -1654,7 +1654,6 @@ function mobile_theme()
{
$is_mobile_theme = get_boolean($_GET['mobile']);
pwg_set_session_var('mobile_theme', $is_mobile_theme);
- unset($_GET['mobile']);
}
else
{