From 107f0cc8cefd341bc686088aa3eb2b73c78c7eb0 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 25 Aug 2011 09:14:23 -0400 Subject: Add a couple more mobile browser detection strings (BlackBerry, Opera Mini/Mobi) --- usr/local/www/head.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/www') diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc index b76374b..69e2019 100755 --- a/usr/local/www/head.inc +++ b/usr/local/www/head.inc @@ -18,7 +18,7 @@ else * If this device is an apple ipod/iphone * switch the theme to one that works with it. */ -$lowres_ua = array("iPhone","iPod", "iPad", "Android"); +$lowres_ua = array("iPhone", "iPod", "iPad", "Android", "BlackBerry", "Opera Mini", "Opera Mobi"); foreach($lowres_ua as $useragent) if(strstr($_SERVER['HTTP_USER_AGENT'], $useragent)) $g['theme'] = empty($g['theme_lowres']) ? "pfsense" : $g['theme_lowres']; -- cgit v1.1