*
* @see SettingsAction
*/
-
class ImsettingsAction extends ConnectSettingsAction
{
/**
*
* @return string Title of the page
*/
-
function title()
{
// TRANS: Title for instance messaging settings.
*
* @return instructions for use
*/
-
function getInstructions()
{
// TRANS: Instant messaging settings page instructions.
*
* @return void
*/
-
function showContent()
{
if (!common_config('xmpp', 'enabled')) {
}
}
$this->elementEnd('fieldset');
-
+
$this->elementStart('fieldset', array('id' => 'settings_im_preferences'));
// TRANS: Form legend for IM preferences form.
$this->element('legend', null, _('IM preferences'));
*
* @return Confirm_address address object for this user
*/
-
function getConfirmation()
{
$user = common_current_user();
*
* @return void
*/
-
function handlePost()
{
// CSRF protection
*
* @return void
*/
-
function savePreferences()
{
$jabbernotify = $this->boolean('jabbernotify');
if ($result === false) {
common_log_db_error($user, 'UPDATE', __FILE__);
// TRANS: Server error thrown on database error updating IM preferences.
- $this->serverError(_('Couldn\'t update user.'));
+ $this->serverError(_('Could not update user.'));
return;
}
*
* @return void
*/
-
function addAddress()
{
$user = common_current_user();
if ($result === false) {
common_log_db_error($confirm, 'INSERT', __FILE__);
// TRANS: Server error thrown on database error adding IM confirmation code.
- $this->serverError(_('Couldn\'t insert confirmation code.'));
+ $this->serverError(_('Could not insert confirmation code.'));
return;
}
*
* @return void
*/
-
function cancelConfirmation()
{
$jabber = $this->arg('jabber');
if (!$result) {
common_log_db_error($confirm, 'DELETE', __FILE__);
// TRANS: Server error thrown on database error canceling IM address confirmation.
- $this->serverError(_('Couldn\'t delete IM confirmation.'));
+ $this->serverError(_('Could not delete IM confirmation.'));
return;
}
*
* @return void
*/
-
function removeAddress()
{
$user = common_current_user();
if (!$result) {
common_log_db_error($user, 'UPDATE', __FILE__);
// TRANS: Server error thrown on database error removing a registered IM address.
- $this->serverError(_('Couldn\'t update user.'));
+ $this->serverError(_('Could not update user.'));
return;
}
$user->query('COMMIT');
*
* @return boolean whether the Jabber ID exists
*/
-
function jabberExists($jabber)
{
$user = common_current_user();