2
0
forked from Wavyzz/dolibarr

Fix: Theme was not defined with smartphone

This commit is contained in:
Laurent Destailleur
2010-04-22 19:45:59 +00:00
parent 3ee92a0de3
commit c6a136930e
2 changed files with 7 additions and 9 deletions

View File

@@ -74,12 +74,11 @@ function dol_loginfunction($langs,$conf,$mysoc)
{
$template_dir = DOL_DOCUMENT_ROOT."/core/tpl/";
}
$conf->css = "/theme/".$conf->theme."/".$conf->theme.".css.php?lang=".$langs->defaultlang;
$conf_css = DOL_URL_ROOT.$conf->css;
}
$conf->css = "/theme/".$conf->theme."/".$conf->theme.".css.php?lang=".$langs->defaultlang;
$conf_css = DOL_URL_ROOT.$conf->css;
// Set cookie for timeout management
$sessiontimeout='DOLSESSTIMEOUT_'.md5($_SERVER["SERVER_NAME"].$_SERVER["DOCUMENT_ROOT"]);
if (! empty($conf->global->MAIN_SESSION_TIMEOUT)) setcookie($sessiontimeout, $conf->global->MAIN_SESSION_TIMEOUT, 0, "/", '', 0);
@@ -204,7 +203,7 @@ function dol_loginfunction($langs,$conf,$mysoc)
}
}
$main_home=nl2br($conf->global->MAIN_HOME);
// Google AD
$main_google_ad_client = ((! empty($conf->global->MAIN_GOOGLE_AD_CLIENT) && ! empty($conf->global->MAIN_GOOGLE_AD_SLOT))?1:0);