Merge branch 'master' of https://github.com/thelia/thelia into coupon
# By Manuel Raynaud # Via Manuel Raynaud * 'master' of https://github.com/thelia/thelia: fix missing } in password template remove smarty cache
This commit is contained in:
@@ -70,14 +70,8 @@ class SmartyParser extends Smarty implements ParserInterface
|
|||||||
$this->error_reporting = E_ALL ^ E_NOTICE;
|
$this->error_reporting = E_ALL ^ E_NOTICE;
|
||||||
|
|
||||||
// Si on n'est pas en mode debug, activer le cache, avec une lifetime de 15mn, et en vérifiant que les templates sources n'ont pas été modifiés.
|
// Si on n'est pas en mode debug, activer le cache, avec une lifetime de 15mn, et en vérifiant que les templates sources n'ont pas été modifiés.
|
||||||
if ($debug === false) {
|
$this->caching = Smarty::CACHING_OFF;
|
||||||
$this->caching = Smarty::CACHING_LIFETIME_CURRENT;
|
$this->force_compile = true;
|
||||||
$this->cache_lifetime = 300;
|
|
||||||
$this->compile_check = true;
|
|
||||||
} else {
|
|
||||||
$this->caching = Smarty::CACHING_OFF;
|
|
||||||
$this->force_compile = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// The default HTTP status
|
// The default HTTP status
|
||||||
$this->status = 200;
|
$this->status = 200;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
{form name="thelia.customer.lostpassword"}
|
{form name="thelia.customer.lostpassword"}
|
||||||
<form id="form-forgotpassword" action="{url path="/password"}" method="post" role="form">
|
<form id="form-forgotpassword" action="{url path="/password"}" method="post" role="form">
|
||||||
|
|
||||||
<p>{intl l="Please enter your email address below." {intl l="You will receive a link to reset your password."}</p>
|
<p>{intl l="Please enter your email address below."} {intl l="You will receive a link to reset your password."}</p>
|
||||||
{form_field form=$form field="email"}
|
{form_field form=$form field="email"}
|
||||||
<div class="form-group group-email {if $error}has-error{elseif !$error && $value != ""}has-success{/if}">
|
<div class="form-group group-email {if $error}has-error{elseif !$error && $value != ""}has-success{/if}">
|
||||||
<label for="{$label_attr.for}">{$label}</label>
|
<label for="{$label_attr.for}">{$label}</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user