/[Arh]/lib/Arh/Action/ToggleEdit.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Arh/Action/ToggleEdit.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 33 by dpavlin, Fri Nov 30 23:23:14 2007 UTC revision 34 by dpavlin, Fri Dec 14 14:39:05 2007 UTC
# Line 37  sub take_action { Line 37  sub take_action {
37          $editing = ! $editing;          $editing = ! $editing;
38          $self->current_user->user_object->set_editing( $editing );          $self->current_user->user_object->set_editing( $editing );
39    
40      $self->result->message( _('Edit mode is now '), $editing ? _('on') : _("off") );      $self->result->message( _('Edit mode is now ') . ( $editing ? _('on') : _("off") ) );
41    
42          warn "editing $editing for ", $self->current_user->id;          warn "editing $editing for ", $self->current_user->id;
43    

Legend:
Removed from v.33  
changed lines
  Added in v.34

  ViewVC Help
Powered by ViewVC 1.1.26