Yoshihisa Fukuhara
higef****@users*****
2006年 5月 19日 (金) 11:48:20 JST
Index: affelio/apps/diary/Diary/WriteDiary.pm
diff -u affelio/apps/diary/Diary/WriteDiary.pm:1.16 affelio/apps/diary/Diary/WriteDiary.pm:1.17
--- affelio/apps/diary/Diary/WriteDiary.pm:1.16 Wed Apr 19 21:20:20 2006
+++ affelio/apps/diary/Diary/WriteDiary.pm Fri May 19 11:48:20 2006
@@ -141,6 +141,7 @@
}
}
elsif( $sub_mode eq "submit" ){
+ $output_ref->{tmpl_file} = $diary->{afap}->{app__fs_root}."/templates/write_diary_done.tmpl";
# add entry
debug_print("Diary::Write::show: before add entry");
my $time = timelocal(0, $min, $hour, $mday, $mon - 1, $year);
@@ -150,6 +151,11 @@
$time);
copyUploadImage($diary, $new_id);
+ # send trackback ping
+ if ($tping) {
+ sendTrackbackPing($diary, $tping, $title, $contents, $new_id);
+ }
+
debug_print("Diary::Write::show: post news");
my $sha1 = $diary->{afap}->post_news($title,
"",
@@ -159,16 +165,6 @@
if ($sha1 ne ""){
$diary->{dbh}->do("UPDATE $diary->{entry_table} SET sha1 = '$sha1' WHERE id = $new_id");
}
-
- debug_print("Diary::Write::show: ping");
- # send trackback ping
- if ($tping) {
- sendTrackbackPing($diary, $tping, $title, $contents, $new_id);
- }
- debug_print("Diary::Write::show: load tmpl");
-
- $output_ref->{tmpl_file} = $diary->{afap}->{app__fs_root}."/templates/write_diary_done.tmpl";
- debug_print("Diary::Write::show: after submit");
}else{
(my $sec, $output_ref->{min}, $output_ref->{hour}, $output_ref->{mday}, $output_ref->{mon}, $output_ref->{year}) = localtime;
$output_ref->{mon}++;