Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add 'ignore rules' checkbox to profile settings
  • Loading branch information
RedEnchilada committed Jul 31, 2014
1 parent 4dd4c4e commit 9ea7a6e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions actions/profilesettings.php
Expand Up @@ -202,14 +202,13 @@ function showContent()
false,
(empty($user->subscribe_policy)) ? User::SUBSCRIBE_POLICY_OPEN : $user->subscribe_policy);
$this->elementEnd('li');
}/* removing private non-group notices
}
$this->elementStart('li');
$this->checkbox('private_stream',
$this->checkbox('ignore_rules',
// TRANS: Checkbox label in profile settings.
_('Make updates visible only to my followers'),
($this->arg('private_stream')) ?
$this->boolean('private_stream') : $user->private_stream);
$this->elementEnd('li');*/
_('Ignore site rules'),
false);
$this->elementEnd('li');
$this->elementEnd('ul');
// TRANS: Button to save input in profile settings.
$this->submit('save', _m('BUTTON','Save'));
Expand All @@ -236,6 +235,11 @@ function handlePost()
'Try again, please.'));
return;
}

if ($this->boolean('ignore_rules')) {
$this->showForm(_('WEE-WOO WEE-WOO I\'M A BIG BAD IMPORTANT USER WHO DON\'T NEED NO RULES'));
return;
}

if (Event::handle('StartProfileSaveForm', array($this))) {

Expand Down

0 comments on commit 9ea7a6e

Please sign in to comment.