| 376 | | $q->param( 'type', 'index-' . $obj->id ); |
| 377 | | $q->param( 'tmpl_id', $obj->id ); |
| 378 | | $q->param( 'single_template', 1 ); |
| 379 | | require MT::CMS::Blog; |
| 380 | | return MT::CMS::Blog::start_rebuild_pages($app); |
| | 376 | if ( $obj->type eq 'index' ) { |
| | 377 | $q->param( 'type', 'index-' . $obj->id ); |
| | 378 | $q->param( 'tmpl_id', $obj->id ); |
| | 379 | $q->param( 'single_template', 1 ); |
| | 380 | return $app->forward( 'start_rebuild' ); |
| | 381 | } else { |
| | 382 | # archive rebuild support |
| | 383 | $q->param( 'id', $obj->id ); |
| | 384 | return $app->forward( 'publish_archive_templates' ); |
| | 385 | } |