Changeset 2382
- Timestamp:
- 05/18/08 02:41:05 (21 months ago)
- Location:
- branches/release-38/lib/MT/CMS
- Files:
-
- 2 modified
-
Common.pm (modified) (1 diff)
-
Template.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-38/lib/MT/CMS/Common.pm
r2301 r2382 355 355 # archive rebuild support 356 356 $q->param( 'id', $obj->id ); 357 $q->param( 'reedit', $obj->id ); 357 358 return $app->forward( 'publish_archive_templates' ); 358 359 } -
branches/release-38/lib/MT/CMS/Template.pm
r2361 r2382 2063 2063 require MT::CMS::Blog; 2064 2064 my $return_args; 2065 my $reedit = $app->param('reedit'); 2065 2066 if (@ids) { 2066 2067 # we have more to do after this, so save the list … … 2072 2073 blog_id => scalar $app->param('blog_id'), 2073 2074 id => join(",", @ids), 2075 reedit => $reedit, 2074 2076 } 2075 2077 ); 2076 2078 } else { 2077 # nothing left after this publish operation; just return 2078 # to the edit screen. 2079 my $mode = $reedit ? 'view' : 'list'; 2079 2080 $return_args = $app->uri_params( 2080 mode => 'view',2081 mode => $mode, 2081 2082 args => { 2082 2083 _type => 'template', 2083 2084 blog_id => scalar $app->param('blog_id'), 2084 2085 published => 1, 2085 id => $tmpl_id,2086 2086 saved => 1, 2087 ( $reedit ? ( id => $reedit ) : () ), 2087 2088 } 2088 2089 );
