- $this->checkbox('emailpost',
- _('I want to post notices by email.'),
- $user->emailpost);
+ $this->elementEnd('li');
+ if (common_config('emailpost', 'enabled')) {
+ $this->elementStart('li');
+ $this->checkbox('emailpost',
+ _('I want to post notices by email.'),
+ $user->emailpost);
+ $this->elementEnd('li');
+ }
+ $this->elementStart('li');