/[webpac2]/Webpacus/lib/Webpacus.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 /Webpacus/lib/Webpacus.pm

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

revision 378 by dpavlin, Sat Jan 21 23:27:16 2006 UTC revision 396 by dpavlin, Wed Feb 15 15:23:52 2006 UTC
# Line 71  sub default : Private { Line 71  sub default : Private {
71                                  $c->log->debug( "site: $site_name, action: $action" );                                  $c->log->debug( "site: $site_name, action: $action" );
72                                  # TODO can I really change base like this?                                  # TODO can I really change base like this?
73                                  $c->stash->{base} = "/$site_name/" . $c->stash->{base}                                  $c->stash->{base} = "/$site_name/" . $c->stash->{base}
74                                          unless ($c->stash->{base} =~ m#^/\Q$site_name\E/#);                                          if ($c->stash->{base} && $$c->stash->{base} !~ m#^/\Q$site_name\E/#);
75                                  $c->internal_redirect( $action, $c->stash, @{ $c->req->args } );                                  $c->internal_redirect( $action, $c->stash, @{ $c->req->args } );
76                          } else {                          } else {
77                                  $c->log->debug( "site: $site_name" );                                  $c->log->debug( "site: $site_name" );
# Line 96  sub end : Private { Line 96  sub end : Private {
96      if ($c->response->body) {      if ($c->response->body) {
97          $c->log->debug("at end body exists, we won't touch it!");          $c->log->debug("at end body exists, we won't touch it!");
98      } else {      } else {
                 $c->fillform( $c->req->params );  
   
99                  if (my $site_name = $c->stash->{site}) {                  if (my $site_name = $c->stash->{site}) {
100                          my $template_path = $c->path_to('root', $c->config->{sites_root}, $site_name, $c->stash->{template});                          my $template_path = $c->path_to('root', $c->config->{sites_root}, $site_name, $c->stash->{template});
101                          if (-e $template_path) {                          if (-e $template_path) {
# Line 111  sub end : Private { Line 109  sub end : Private {
109                  # Forward to View unless response body is already defined                  # Forward to View unless response body is already defined
110                  $c->forward('View::TT');                  $c->forward('View::TT');
111    
112                    $c->fillform( $c->req->params );
113    
114                  $c->response->{body} =~ s#\Qnew Ajax.Autocompleter(\E#new WebPAC.Suggest(#gs;                  $c->response->{body} =~ s#\Qnew Ajax.Autocompleter(\E#new WebPAC.Suggest(#gs;
115                  $c->response->{body} =~ s#\Qnew Ajax.Updater(\E#new WebPAC.Updater(#gs;                  $c->response->{body} =~ s#\Qnew Ajax.Updater(\E#new WebPAC.Updater(#gs;
116    

Legend:
Removed from v.378  
changed lines
  Added in v.396

  ViewVC Help
Powered by ViewVC 1.1.26