| @@ -112,10 +112,11 @@ | ||
| 112 | 112 | $this->log( sprintf( 'modified %s', $file ), Scan_Controller::SCAN_LOG ); |
| 113 | 113 | $model->add_item( |
| 114 | 114 | Scan_Item::TYPE_INTEGRITY, |
| 115 | 115 | array( |
| 116 | - 'file' => $file, | |
| 117 | - 'type' => 'modified', | |
| 116 | + 'file' => $file, | |
| 117 | + 'type' => 'modified', | |
| 118 | + 'checksum' => $checksums[ $rev_file ], | |
| 118 | 119 | ) |
| 119 | 120 | ); |
| 120 | 121 | } |
| 121 | 122 | } else { |
| @@ -161,11 +162,9 @@ | ||
| 161 | 162 | // We will check if we have any ignore issue from last scan, so we can bring it here. |
| 162 | 163 | $last = Scan::get_last(); |
| 163 | 164 | if ( is_object( $last ) ) { |
| 164 | 165 | $ignored_issues = $last->get_issues( Scan_Item::TYPE_INTEGRITY, Scan_Item::STATUS_IGNORE ); |
| 165 | - foreach ( $ignored_issues as $issue ) { | |
| 166 | - $model->add_item( Scan_Item::TYPE_INTEGRITY, $issue->raw_data, Scan_Item::STATUS_IGNORE ); | |
| 167 | - } | |
| 166 | + $model->carry_forward_ignored_issues( Scan_Item::TYPE_INTEGRITY, $ignored_issues, 'file' ); | |
| 168 | 167 | } |
| 169 | 168 | // Done, reset this, so we can use it later. |
| 170 | 169 | $model->task_checkpoint = ''; |
| 171 | 170 | } |