diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-12-23 14:44:28 -0500 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-12-23 14:44:28 -0500 |
commit | 7ad2f2a371eae2489330f30306cfcbb204411bae (patch) | |
tree | 860c4f8e3749bb180f5d287c6b8e5eb65ccea5f1 /actions/profilesettings.php | |
parent | 04ef1ba8eee7a9e2a565d7b4b747ef607665d562 (diff) |
TRUE
More PEAR coding standards global changes. Here, I've changed all
instances of TRUE to true and FALSE to false.
darcs-hash:20081223194428-84dde-cb1a1e6f679acd68e864545c4d4dd8752d6a6257.gz
Diffstat (limited to 'actions/profilesettings.php')
-rw-r--r-- | actions/profilesettings.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/actions/profilesettings.php b/actions/profilesettings.php index 7f7ee17a5..beb9979d0 100644 --- a/actions/profilesettings.php +++ b/actions/profilesettings.php @@ -96,13 +96,13 @@ class ProfilesettingsAction extends SettingsAction { _('Tags for yourself (letters, numbers, -, ., and _), comma- or space- separated')); $language = common_language(); - common_dropdown('language', _('Language'), get_nice_language_list(), _('Preferred language'), TRUE, $language); + common_dropdown('language', _('Language'), get_nice_language_list(), _('Preferred language'), true, $language); $timezone = common_timezone(); $timezones = array(); foreach(DateTimeZone::listIdentifiers() as $k => $v) { $timezones[$v] = $v; } - common_dropdown('timezone', _('Timezone'), $timezones, _('What timezone are you normally in?'), TRUE, $timezone); + common_dropdown('timezone', _('Timezone'), $timezones, _('What timezone are you normally in?'), true, $timezone); common_checkbox('autosubscribe', _('Automatically subscribe to whoever subscribes to me (best for non-humans)'), ($this->arg('autosubscribe')) ? $this->boolean('autosubscribe') : $user->autosubscribe); @@ -278,7 +278,7 @@ class ProfilesettingsAction extends SettingsAction { $result = $user->updateKeys($original); - if ($result === FALSE) { + if ($result === false) { common_log_db_error($user, 'UPDATE', __FILE__); common_server_error(_('Couldn\'t update user.')); return; @@ -298,7 +298,7 @@ class ProfilesettingsAction extends SettingsAction { $result = $user->update($original); - if ($result === FALSE) { + if ($result === false) { common_log_db_error($user, 'UPDATE', __FILE__); common_server_error(_('Couldn\'t update user for autosubscribe.')); return; @@ -340,7 +340,7 @@ class ProfilesettingsAction extends SettingsAction { common_broadcast_profile($profile); - $this->show_form(_('Settings saved.'), TRUE); + $this->show_form(_('Settings saved.'), true); } @@ -434,7 +434,7 @@ class ProfilesettingsAction extends SettingsAction { $user->password = common_munge_password($newpassword, $user->id); $val = $user->validate(); - if ($val !== TRUE) { + if ($val !== true) { $this->show_form(_('Error saving user; invalid.')); return; } |