Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -1904,10 +1904,10 @@ |
1905 | 1905 | * @param Title $title |
1906 | 1906 | * @param Revision $rev |
1907 | 1907 | */ |
1908 | | - public static function revSubmitted( $title, $rev ) { |
| 1908 | + public static function revSubmitted( $title, $rev, $edit ) { |
1909 | 1909 | global $wgRequest, $wgUser; |
1910 | 1910 | # Request was submitted |
1911 | | - if( !$wgRequest->wasPosted() ) { |
| 1911 | + if( !$edit || !$wgRequest->wasPosted() ) { |
1912 | 1912 | return false; |
1913 | 1913 | } |
1914 | 1914 | # Must be by this user |
— | — | @@ -1942,7 +1942,7 @@ |
1943 | 1943 | return true; |
1944 | 1944 | } |
1945 | 1945 | # For edits from normal form submits only! |
1946 | | - if( !self::revSubmitted( $title, $rev ) ) { |
| 1946 | + if( !self::revSubmitted( $title, $rev, $edit ) ) { |
1947 | 1947 | return true; |
1948 | 1948 | } |
1949 | 1949 | $frev = null; |