Changeset 206 for trunk/lib/Vote/Controller/Vote.pm
- Timestamp:
- 04/16/09 00:16:56 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Vote.pm
r198 r206 38 38 39 39 $c->stash->{voteid} = $id; 40 $c->stash->{page}{title} = 'Vote: ' . $c->model('Vote')-> vote_info($id)->{label};40 $c->stash->{page}{title} = 'Vote: ' . $c->model('Vote')->poll($id).info('label'); 41 41 } 42 42 … … 47 47 $c->stash->{template} = 'default.tt'; 48 48 49 $vote-> vote_info($c->stash->{voteid})or do {49 $vote->poll($c->stash->{voteid})->info or do { 50 50 $c->res->redirect($c->uri_for('/')); 51 51 return;
Note: See TracChangeset
for help on using the changeset viewer.