Masato Kikuhara
en-sf****@users*****
2005年 7月 12日 (火) 02:43:54 JST
Index: affelio/apps/diary/Diary.pm
diff -u affelio/apps/diary/Diary.pm:1.26 affelio/apps/diary/Diary.pm:1.27
--- affelio/apps/diary/Diary.pm:1.26 Thu Jul 7 20:45:25 2005
+++ affelio/apps/diary/Diary.pm Tue Jul 12 02:43:53 2005
@@ -371,7 +371,7 @@
CALENDER => $self->translate_templateL10N($calender),
access_control_URL => $self->{afap}->get_URL("access_control"),
);
- if ($self->{afap}->check_access('write_diary')) {
+ if ($self->{afap}->check_access('write_diary') and eval { require XML::Parser; }) {
$tmpl->param(EDITABLE => 1);
}
$header .= $tmpl->output;