[+] Project: it's possible to create new genders, "Miss" gender is now added

This commit is contained in:
rMalie
2011-09-14 15:15:51 +00:00
parent 0c811bf344
commit 38a61b379a
35 changed files with 777 additions and 526 deletions
+8 -7
View File
@@ -1,6 +1,6 @@
<?php
/*
* 2007-2011 PrestaShop
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
@@ -31,11 +31,11 @@ class IdentityControllerCore extends FrontController
public $php_self = 'identity';
public $authRedirection = 'identity';
public $ssl = true;
public function preProcess()
{
parent::preProcess();
$customer = $this->context->customer;
if (sizeof($_POST))
@@ -102,18 +102,19 @@ class IdentityControllerCore extends FrontController
'sl_month' => $birthday[1],
'days' => Tools::dateDays(),
'sl_day' => $birthday[2],
'errors' => $this->errors
'errors' => $this->errors,
'genders' => Gender::getGenders(),
));
$this->context->smarty->assign('newsletter', (int)Module::getInstanceByName('blocknewsletter')->active);
}
public function setMedia()
{
parent::setMedia();
$this->addCSS(_THEME_CSS_DIR_.'identity.css');
}
public function displayContent()
{
parent::displayContent();