--- lib/MT/App.pm.orig Fri Aug 27 08:53:35 2004 +++ lib/MT/App.pm Fri Aug 27 09:00:36 2004 @@ -71,6 +71,9 @@ sub send_http_header { my $app = shift; my($type) = @_; + if ($ENV{'HTTP_CONTENT_TYPE'}){ + $type= $ENV{'HTTP_CONTENT_TYPE'}; + } $type ||= 'text/html'; if (my $charset = $app->{charset}) { $type .= "; charset=$charset" @@ -278,7 +281,7 @@ my($error) = @_; my $tmpl; $error = encode_html($error); - $error =~ s!(http://\S+)!$1!g; + $error =~ s!(http://\S+)!$1!g; $tmpl = $app->load_tmpl('error.tmpl') or return "Can't load error template; got error '" . $app->errstr . "'. Giving up. Original error was
$error"; --- lib/MT.pm.orig Fri Aug 27 09:05:58 2004 +++ lib/MT.pm Fri Aug 27 09:19:17 2004 @@ -386,7 +386,13 @@ } } unless ($param{NoIndexes}) { - $mt->rebuild_indexes( Blog => $blog ) or return; + ## + # sean willson - http://www.seanwillson.com/ + # added a rebuild type parameter so that it would only rebuild + # the indexes that i designated appropriate. + # + $mt->rebuild_indexes( Blog => $blog, RebuildType => 'In' ) or return; + ## } my $identity_link_image = $blog->site_path . "/nav-commenters.gif"; # TBD: Use StaticWebPath version unless mt.cfg says use this. @@ -486,7 +492,14 @@ } ## Rebuild all indexes, in case this entry is on an index. - $mt->rebuild_indexes( Blog => $blog ) or return; + + ## + # sean willson - http://www.seanwillson.com/ + # added a rebuild type parameter so that it would only rebuild + # the indexes that i designated appropriate. + # + $mt->rebuild_indexes( Blog => $blog, RebuildType => 'En' ) or return; + ## ## Rebuild previous and next daily, weekly, and monthly archives; ## adding a new entry could cause changes to the intra-archive @@ -845,9 +858,30 @@ ## before that time, the rebuild_me flag will be undefined. But ## we assume that these templates should be rebuilt, since that ## was the previous behavior. - next if !$param{Force} && ( - (defined $tmpl->rebuild_me && !$tmpl->rebuild_me) - && !$tmpl->build_dynamic); + + ## + # sean willson - http://www.seanwillson.com/ + # commented this code out because the new rebuild type code overrides this. + # + #next if !$param{Force} && ( + # (defined $tmpl->rebuild_me && !$tmpl->rebuild_me) + # && !$tmpl->build_dynamic); + ## + + ## + # sean willson - http://www.seanwillson.com/ + # made it so that it doesn't rebuild unless it is supposed to. + # + my $tmplRebuildType = defined $tmpl->rebuild_type ? $tmpl->rebuild_type: 'EnCo'; + my $rebuildType = $param{RebuildType}; + + next if ((! $param{Force}) && ($tmplRebuildType =~ /ne/gi) && !$tmpl->build_dynamic); + + next if ((! $param{Force}) && + ($rebuildType !~ /in/gi) && + ($tmplRebuildType !~ /$rebuildType|all/gi) && + !$tmpl->build_dynamic); + ## my $index = $tmpl->outfile or return $mt->error($mt->translate( --- lib/MT/Template.pm.orig Fri Aug 27 09:20:04 2004 +++ lib/MT/Template.pm Fri Aug 27 09:20:46 2004 @@ -26,7 +26,7 @@ columns => [ 'id', 'blog_id', 'name', 'type', 'outfile', 'text', 'linked_file', 'linked_file_mtime', 'linked_file_size', - 'rebuild_me', 'build_dynamic' + 'rebuild_me', 'rebuild_type', 'build_dynamic' ], indexes => { blog_id => 1, --- tmpl/email/new-comment.tmpl.orig Fri Aug 27 09:21:44 2004 +++ tmpl/email/new-comment.tmpl Fri Aug 27 09:22:26 2004 @@ -12,6 +12,7 @@
- + - + " />
@@ -66,7 +66,7 @@-
-
-
-
-
+
+
+
+