以下のように修正する。
+ global $_msg_calendar2_restrict;
$get['page'] = $post['page'] = $vars['page'] = $tpage; - $str = convert_html(get_source($tpage)); + if (check_readable($tpage, FALSE, FALSE)) { + $str = convert_html(get_source($tpage)); + } else { + $str = str_replace('$1', $tpage, $_msg_calendar2_restrict); + } $str .= '<hr /><a class="small" href="' . $script .
/////////////////////////////////////// // calendar2.inc.php $_calendar2_plugin_edit = '[この日記を編集]'; $_calendar2_plugin_empty = '%sは空です。'; +$_msg_calendar2_restrict = '$1 は閲覧制限がかかっているためcalendar2による参照はできません';
/////////////////////////////////////// // calendar2.inc.php $_calendar2_plugin_edit = '[edit]'; $_calendar2_plugin_empty = '%s is empty.'; +$_msg_calendar2_restrict = 'Due to the blocking, the calendar2 cannot refer to $1.';