This commit is contained in:
Michael RICOIS 2018-02-09 09:30:13 +01:00
parent 20fd85c5fb
commit b67de1c311
2 changed files with 21 additions and 16 deletions

View File

@ -1,6 +1,6 @@
<?php
/*
* 2007-2011 PrestaShop
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
@ -40,18 +40,20 @@ class IdentityControllerCore extends FrontController
if (sizeof($_POST))
{
$exclusion = array('secure_key',
'old_passwd',
'passwd',
'active',
'date_add',
'date_upd',
'last_passwd_gen',
'newsletter_date_add',
'id_default_group',
'ip_registration_newsletter',
'note',
'is_guest');
$exclusion = array(
'secure_key',
'old_passwd',
'passwd',
'active',
'date_add',
'date_upd',
'last_passwd_gen',
'newsletter_date_add',
'id_default_group',
'ip_registration_newsletter',
'note',
'is_guest'
);
$fields = $customer->getFields();
foreach ($fields AS $key => $value)
if (!in_array($key, $exclusion))

View File

@ -1,11 +1,14 @@
<?php
class IdentityController extends IdentityControllerCore {
public function preProcess() {
class IdentityController extends IdentityControllerCore
{
public function preProcess()
{
self::$smarty->assign(array('HOOK_PROFILE_EDIT' => Module::hookExec('profileEdit')));
parent::preProcess();
}
public function setMedia() {
public function setMedia()
{
parent::setMedia();
global $css_files;