Index: trunk/extensions/SelectionSifter/SelectionSifter.hooks.php |
— | — | @@ -32,6 +32,30 @@ |
33 | 33 | 0 |
34 | 34 | ); |
35 | 35 | $rating->saveAll(); |
| 36 | + |
| 37 | + $timestamp = wfTimestamp( TS_MW ); |
| 38 | + if( !empty( $assessment['quality'] ) ) { |
| 39 | + AssessmentChangeLog::makeEntry( |
| 40 | + $project, |
| 41 | + $main_title->getNamespace(), |
| 42 | + $main_title->getText(), |
| 43 | + $timestamp, |
| 44 | + "quality", |
| 45 | + "", |
| 46 | + $assessment['quality'] |
| 47 | + ); |
| 48 | + } |
| 49 | + if( !empty( $assessment['importance'] ) ) { |
| 50 | + AssessmentChangeLog::makeEntry( |
| 51 | + $project, |
| 52 | + $main_title->getNamespace(), |
| 53 | + $main_title->getText(), |
| 54 | + $timestamp, |
| 55 | + "importance", |
| 56 | + "", |
| 57 | + $assessment['importance'] |
| 58 | + ); |
| 59 | + } |
36 | 60 | } |
37 | 61 | } |
38 | 62 | } |