Skip to content
Snippets Groups Projects
Commit ca900c68 authored by Regis Houssin's avatar Regis Houssin
Browse files

Experimental: add smartphone maemo system

parent 95a134b3
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ class Smartphone {
function getTemplateDir()
{
// iWebKit template
if (preg_match('/android|blackberry|iphone/i',$this->phone))
if (preg_match('/android|blackberry|iphone|maemo/i',$this->phone))
{
$this->theme = 'default';
$this->template_dir=DOL_DOCUMENT_ROOT."/theme/phones/smartphone/tpl/";
......
......@@ -202,6 +202,7 @@ if (isset($_SERVER["HTTP_USER_AGENT"]))
elseif (preg_match('/palm/i',$_SERVER["HTTP_USER_AGENT"])) $conf->browser->phone='palm';
elseif (preg_match('/symbian/i',$_SERVER["HTTP_USER_AGENT"])) $conf->browser->phone='symbian';
elseif (preg_match('/webos/i',$_SERVER["HTTP_USER_AGENT"])) $conf->browser->phone='webos';
elseif (preg_match('/maemo/i',$_SERVER["HTTP_USER_AGENT"])) $conf->browser->phone='maemo';
// MS products at end
elseif (preg_match('/iemobile/i',$_SERVER["HTTP_USER_AGENT"])) $conf->browser->phone='windowsmobile';
elseif (preg_match('/windows ce/i',$_SERVER["HTTP_USER_AGENT"])) $conf->browser->phone='windowsmobile';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment