Changeset 16 for server/trunk/web/lib/Sophie/Controller/Root.pm
- Timestamp:
- 11/22/10 02:57:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Controller/Root.pm
r4 r16 26 26 my ( $self, $c ) = @_; 27 27 28 if ($c->req->param('json')) { 28 if (($c->req->query_keywords || '') =~ /([^\w]|^)json([^\w]|$)/ || 29 exists($c->req->params ->{json})) { 29 30 $c->stash->{current_view} = 'Json'; 31 } 32 if (($c->req->query_keywords || '') =~ /([^\w]|^)ajax([^\w]|$)/ || 33 exists($c->req->params ->{ajax})) { 34 $c->stash->{current_view} = 'Ajax'; 30 35 } 31 36 … … 75 80 } elsif (!$c->stash->{current_view}) { 76 81 } 82 $c->stash->{$c->action} = $c->stash->{xmlrpc}; 77 83 $c->model('Base')->storage->dbh->rollback; 78 84 }
Note: See TracChangeset
for help on using the changeset viewer.