Skip to content

Commit

Permalink
Fix: debian epiphany and iceweasel browsers.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Apr 14, 2012
1 parent 2ee9ca9 commit 71c43c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion htdocs/core/class/conf.class.php
Expand Up @@ -357,7 +357,11 @@ function setValues($db)
$this->product->limit_size=$this->global->PRODUIT_LIMIT_SIZE;

// conf->theme et $this->css
if (empty($this->global->MAIN_THEME)) $this->global->MAIN_THEME="eldy";
if (empty($this->global->MAIN_THEME))
{
if (isset($_SERVER["HTTP_USER_AGENT"]) && preg_match('/(epiphany|iceweasel)/i',$_SERVER["HTTP_USER_AGENT"])) $this->global->MAIN_THEME="auguria";
else $this->global->MAIN_THEME="eldy";
}
$this->theme=$this->global->MAIN_THEME;
$this->css = "/theme/".$this->theme."/style.css.php";

Expand Down
1 change: 0 additions & 1 deletion htdocs/install/mysql/data/llx_const.sql
Expand Up @@ -59,7 +59,6 @@ insert into llx_const (name, value, type, note, visible) values ('MAIN_MENUFRONT
insert into llx_const (name, value, type, note, visible) values ('MAIN_MENU_SMARTPHONE','eldy_backoffice.php','chaine','Module de gestion de la barre de menu smartphone pour utilisateurs internes',0);
insert into llx_const (name, value, type, note, visible) values ('MAIN_MENUFRONT_SMARTPHONE','eldy_frontoffice.php','chaine','Module de gestion de la barre de menu smartphone pour utilisateurs externes',0);

insert into llx_const (name, value, type, note, visible) values ('MAIN_THEME','eldy','chaine','Default theme',0);

--
-- Delai tolerance
Expand Down

0 comments on commit 71c43c9

Please sign in to comment.