Fix: smarty or php templates

This commit is contained in:
Regis Houssin 2010-01-11 07:53:31 +00:00
parent 194cc07396
commit 6cdae112a8

View File

@ -365,7 +365,8 @@ function dol_loginfunction($langs,$conf,$mysoc)
}
else
{
if (file_exists(DOL_DOCUMENT_ROOT."/theme/".$conf->theme."/templates/login.tpl"))
if (file_exists(DOL_DOCUMENT_ROOT."/theme/".$conf->theme."/templates/login.tpl")
|| file_exists(DOL_DOCUMENT_ROOT."/theme/".$conf->theme."/templates/login.tpl.php"))
{
$template_dir=DOL_DOCUMENT_ROOT."/theme/".$conf->theme."/templates/";
}