summaryrefslogtreecommitdiff
path: root/app/php/components/TimezoneSelect.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-03-16 22:56:13 +0100
committeremkael <emkael@tlen.pl>2016-03-16 22:56:13 +0100
commit75dc7a1df808ab2ca93ca96e299b06d90ebcedf6 (patch)
tree3c7671d8e47b5b68e534ad13ecb5acb9374d4272 /app/php/components/TimezoneSelect.php
parentc5058d68713fc710c68488db726b05453e18d85d (diff)
* refactoring, code formatting
Diffstat (limited to 'app/php/components/TimezoneSelect.php')
-rw-r--r--app/php/components/TimezoneSelect.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/php/components/TimezoneSelect.php b/app/php/components/TimezoneSelect.php
index d97514f..5825b1a 100644
--- a/app/php/components/TimezoneSelect.php
+++ b/app/php/components/TimezoneSelect.php
@@ -11,7 +11,9 @@ class TimezoneSelect extends TTemplateControl {
public function setUserToChange(DbUser $user) {
if ($user->IsGuest) {
- throw new TInvalidDataValueException('Password change impossible for guest user');
+ throw new TInvalidDataValueException(
+ 'Password change impossible for guest user'
+ );
}
$this->setControlState('user', $user);
}
@@ -22,7 +24,9 @@ class TimezoneSelect extends TTemplateControl {
$this->Timezones->DataValueField = 'Name';
$this->Timezones->DataTextField = 'Label';
$this->Timezones->dataBind();
- $this->Timezones->setSelectedValue($this->UserToChange->getTimezonePreference()->Name);
+ $this->Timezones->setSelectedValue(
+ $this->UserToChange->getTimezonePreference()->Name
+ );
}
public function saveTimezone($sender, $param) {