Index: trunk/extensions/SemanticTasks/SemanticTasks.classes.php |
— | — | @@ -47,16 +47,8 @@ |
48 | 48 | |
49 | 49 | public static function mailAssigneesUpdatedTask( $article, $current_user, $text, $summary, $minoredit, $watchthis, $sectionanchor, $flags, $revision ) { |
50 | 50 | if ( !$minoredit ) { |
51 | | - // Get the revision count to determine if new article |
52 | | - $rev = $article->estimateRevisionCount(); |
53 | | - |
54 | | - if ( $rev == 1 ) { |
55 | | - $title = $article->getTitle(); |
56 | | - if ( $title->isTalkPage() ) { |
57 | | - $status = UPDATE; |
58 | | - } else { |
59 | | - $status = NEWTASK; |
60 | | - } |
| 51 | + if ( ( $flags & EDIT_NEW ) && !$article->getTitle()->isTalkPage() ) { |
| 52 | + $status = NEWTASK; |
61 | 53 | } else { |
62 | 54 | $status = UPDATE; |
63 | 55 | } |