Changeset 50 for server/trunk/web/lib/Sophie/Controller/Root.pm
- Timestamp:
- 11/29/10 15:22:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Controller/Root.pm
r42 r50 31 31 $c->res->redirect($c->uri_for("/$path")); 32 32 return; 33 } 34 35 if (!$c->stash->{path}) { 36 my @path; 37 my @reqpath = grep { $_ } split('/', $c->req->path); 38 foreach (@reqpath) { 39 push(@path, $_); 40 push(@{ $c->stash->{sitepath} }, { path => $c->uri_for('/', @path), name => $_ }); 41 } 33 42 } 34 43
Note: See TracChangeset
for help on using the changeset viewer.