From: henoheno Date: Mon, 10 Apr 2006 13:18:32 +0000 (+0900) Subject: Grouped 'do not change timestamp' code together X-Git-Tag: r1_5_0_rc1~101 X-Git-Url: http://git.osdn.net/view?p=pukiwiki%2Fpukiwiki.git;a=commitdiff_plain;h=ae63f6c04a90faeb89e33001c161c1eee7474859 Grouped 'do not change timestamp' code together --- diff --git a/lib/html.php b/lib/html.php index 8e5be9d..3a94e9b 100644 --- a/lib/html.php +++ b/lib/html.php @@ -1,6 +1,6 @@ - -EOD; - if ( $notimeupdate == 2 ) { - // enable only administrator - $add_notimestamp .= << -EOD; + if ($notimeupdate != 0) { + global $_btn_notchangetimestamp; + $checked_time = isset($vars['notimestamp']) ? ' checked="checked"' : ''; + // Only for administrator + if ($notimeupdate == 2) { + $add_notimestamp = ' ' . + '' . "\n"; } - $add_notimestamp .= ' '; + $add_notimestamp = '' . "\n" . + ' ' . '' . "\n" . + $add_notimestamp . + ' '; } $body = <<