mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #446 from un0x/master
Added IE Mobile for WP8 to list of mobile browsers
This commit is contained in:
commit
e82e8700fd
@ -1932,7 +1932,7 @@ function get_current_theme() {
|
||||
* If this device is an apple ipod/iphone
|
||||
* switch the theme to one that works with it.
|
||||
*/
|
||||
$lowres_ua = array("iPhone", "iPod", "iPad", "Android", "BlackBerry", "Opera Mini", "Opera Mobi", "PlayBook");
|
||||
$lowres_ua = array("iPhone", "iPod", "iPad", "Android", "BlackBerry", "Opera Mini", "Opera Mobi", "PlayBook", "IEMobile");
|
||||
foreach($lowres_ua as $useragent)
|
||||
if(strstr($_SERVER['HTTP_USER_AGENT'], $useragent))
|
||||
$theme = (empty($g['theme_lowres']) && (is_dir($g["www_path"].'/themes/'.$g['theme_lowres']))) ? "pfsense" : $g['theme_lowres'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user