- 追加された行はこの色です。
- 削除された行はこの色です。
[[../]]
*plugin/calendar2.inc.php [#x41d5339]
以下のように修正する。
-plugin/calendar2.inc.php
--16行目辺り
+ global $_msg_calendar2_restrict;
--158行目辺り
$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 .
-ja.lng.php
--230行目辺り
///////////////////////////////////////
// calendar2.inc.php
$_calendar2_plugin_edit = '[この日記を編集]';
$_calendar2_plugin_empty = '%sは空です。';
+$_msg_calendar2_restrict = '$1 は閲覧制限がかかっているためcalendar2による参照はできません';
-en.lng.php
///////////////////////////////////////
// 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.';