diff --git a/InlineHistory/InlineHistory.php b/InlineHistory/InlineHistory.php index e2c6be2..e55c707 100644 --- a/InlineHistory/InlineHistory.php +++ b/InlineHistory/InlineHistory.php @@ -24,7 +24,7 @@ function register() { $this->version = '0.1'; $this->requires = array( - 'MantisCore' => '1.2.0', + 'MantisCore' => '2.0.0', ); $this->author = 'John Reese, MantisBT team'; @@ -106,7 +106,7 @@ function user_pref_update_form( $p_event, $p_user_id ) { plugin_lang_get( 'view_inline_history' ), '', 'user_inline_view_enabled( $p_user_id ) ); + check_checked( boolval($this->user_inline_view_enabled( $p_user_id )) ); echo '/>'; } @@ -236,7 +236,9 @@ private function need_next( $p_note_time ) { if ( !isset( $this->history[0] ) ) { return false; } - $t_need_next = $this->history[0]['date'] < $p_note_time; + + $t_need_next = strtotime($this->history[0]['date']) < strtotime($p_note_time); + if ( $this->order ) { return $t_need_next; } else {