Index: trunk/extensions/ApprovedRevs/ApprovedRevs.hooks.php |
— | — | @@ -46,7 +46,15 @@ |
47 | 47 | static public function setApprovedRevForParsing( &$parser, &$text, &$stripState ) { |
48 | 48 | global $wgRequest; |
49 | 49 | |
| 50 | + // Static variable to prevent recursive calls to this method. |
| 51 | + static $alreadyCalled = false; |
| 52 | + |
50 | 53 | if ( $wgRequest->getCheck( 'wpSave' ) ) { |
| 54 | + if ( $alreadyCalled ) { |
| 55 | + return true; |
| 56 | + } |
| 57 | + $alreadyCalled = true; |
| 58 | + |
51 | 59 | // @HACK ? If the ConfirmEdit extension is installed |
52 | 60 | // and kicks in for this save (i.e., prompting the |
53 | 61 | // user for a CAPTCHA test), it will lead to bad |