Added administrator preferred locale (see issue #183)
This commit is contained in:
@@ -35,6 +35,7 @@ class AdministratorEvent extends ActionEvent
|
||||
protected $login = null;
|
||||
protected $password = null;
|
||||
protected $profile = null;
|
||||
protected $locale = null;
|
||||
|
||||
public function __construct(Admin $administrator = null)
|
||||
{
|
||||
@@ -117,4 +118,15 @@ class AdministratorEvent extends ActionEvent
|
||||
{
|
||||
return $this->profile;
|
||||
}
|
||||
}
|
||||
|
||||
public function setLocale($locale)
|
||||
{
|
||||
$this->locale = $locale;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLocale()
|
||||
{
|
||||
return $this->locale;
|
||||
}
|
||||
}
|
||||
@@ -89,6 +89,7 @@ class Admin extends BaseLoop implements PropelSearchLoopInterface
|
||||
->set("FIRSTNAME",$admin->getFirstname())
|
||||
->set("LASTNAME",$admin->getLastname())
|
||||
->set("LOGIN",$admin->getLogin())
|
||||
->set("LOCALE",$admin->getLocale())
|
||||
;
|
||||
|
||||
$loopResult->addRow($loopResultRow);
|
||||
|
||||
Reference in New Issue
Block a user