Test: smarty integration and iphone template

This commit is contained in:
Regis Houssin 2009-12-27 05:50:46 +00:00
parent 127413f465
commit ba091af947
2 changed files with 11 additions and 2 deletions

View File

@ -354,7 +354,15 @@ if (! isset($_SESSION["dol_login"]))
{
// We show login page
include_once(DOL_DOCUMENT_ROOT."/lib/security.lib.php");
dol_loginfunction($langs,$conf,$mysoc);
// TODO activer smarty par defaut ?
if ($conf->global->MAIN_SMARTY)
{
dol_loginfunction2($langs,$conf,$mysoc);
}
else
{
dol_loginfunction($langs,$conf,$mysoc);
}
exit;
}

View File

@ -418,7 +418,8 @@ if (! defined('MAGPIE_CACHE_DIR')) { define('MAGPIE_CACHE_DIR', $conf->exte
if (! defined('MAIN_LABEL_MENTION_NPR') ) define('MAIN_LABEL_MENTION_NPR','NPR');
// If there is at least one module using Smarty
if (sizeof($conf->need_smarty) > 0)
// TODO activer smarty par defaut ?
if (sizeof($conf->need_smarty) > 0 || $conf->global->MAIN_SMARTY)
{
// Usage of constats in conf.php file is no more required.
if (empty($dolibarr_smarty_libs_dir)) $dolibarr_smarty_libs_dir=DOL_DOCUMENT_ROOT.'/includes/smarty/libs/';