Changeset 3 for apps/trunk/lib/Sophie/Controller/Root.pm
- Timestamp:
- 11/13/10 12:33:57 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/trunk/lib/Sophie/Controller/Root.pm
r2 r3 20 20 21 21 =head1 METHODS 22 23 =cut 24 25 sub begin : Private { 26 my ( $self, $c ) = @_; 27 28 if ($c->req->param('json')) { 29 $c->stash->{current_view} = 'Json'; 30 } 31 } 22 32 23 33 =head2 index … … 57 67 sub end : Private { 58 68 my ( $self, $c ) = @_; 59 if ($c->req->xmlrpc->method) { 60 return; 61 } else { 69 if (!$c->req->xmlrpc->method) { 62 70 $c->forward('_end'); 71 } elsif (!$c->stash->{current_view}) { 63 72 } 73 $c->model('Base')->storage->dbh->rollback; 64 74 } 65 75
Note: See TracChangeset
for help on using the changeset viewer.