Changeset 678 for trunk/wiki.cgi

Show
Ignore:
Timestamp:
10/05/05 05:05:16 (3 years ago)
Author:
earle
Message:

Change the behaviour of the "redirected" message to link to a rendered version of the old page, not the editing view.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wiki.cgi

    r677 r678  
    125125                my $redirect; 
    126126                 
    127                 if ($q->param("redirect") && ($q->param("redirect") == 0)) { 
     127                if ((defined $q->param("redirect")) && ($q->param("redirect") == 0)) { 
    128128                  $redirect = 0; 
    129129                } else { 
     
    135135                                      version  => $version, 
    136136                                      oldid    => $oldid, 
    137                                       redirect => $redirect; 
    138                 ); 
    139                  
    140         } 
     137                                      redirect => $redirect, 
     138                                    ); 
     139            } 
    141140        } 
    142141    }