Index: trunk/extensions/ConfirmEdit/ConfirmEdit_body.php |
— | — | @@ -15,11 +15,11 @@ |
16 | 16 | return $wgCaptcha; |
17 | 17 | } |
18 | 18 | |
19 | | - static function confirmEdit( &$editPage, $newtext, $section ) { |
| 19 | + static function confirmEdit( $editPage, $newtext, $section ) { |
20 | 20 | return self::getInstance()->confirmEdit( $editPage, $newtext, $section ); |
21 | 21 | } |
22 | 22 | |
23 | | - static function confirmEditMerged( &$editPage, $newtext ) { |
| 23 | + static function confirmEditMerged( $editPage, $newtext ) { |
24 | 24 | return self::getInstance()->confirmEditMerged( $editPage, $newtext ); |
25 | 25 | } |
26 | 26 | |
— | — | @@ -467,7 +467,7 @@ |
468 | 468 | * Backend function for confirmEdit() and confirmEditAPI() |
469 | 469 | * @return bool false if the CAPTCHA is rejected, true otherwise |
470 | 470 | */ |
471 | | - private function doConfirmEdit( &$editPage, $newtext, $section, $merged = false ) { |
| 471 | + private function doConfirmEdit( $editPage, $newtext, $section, $merged = false ) { |
472 | 472 | if( $this->shouldCheck( $editPage, $newtext, $section, $merged ) ) { |
473 | 473 | if( $this->passCaptcha() ) { |
474 | 474 | return true; |
— | — | @@ -488,7 +488,7 @@ |
489 | 489 | * @param bool $merged |
490 | 490 | * @return bool true to continue saving, false to abort and show a captcha form |
491 | 491 | */ |
492 | | - function confirmEdit( &$editPage, $newtext, $section, $merged = false ) { |
| 492 | + function confirmEdit( $editPage, $newtext, $section, $merged = false ) { |
493 | 493 | if( defined('MW_API') ) { |
494 | 494 | # API mode |
495 | 495 | # The CAPTCHA was already checked and approved |
— | — | @@ -506,7 +506,7 @@ |
507 | 507 | * @param EditPage $editPage |
508 | 508 | * @param string $newtext |
509 | 509 | */ |
510 | | - function confirmEditMerged( &$editPage, $newtext ) { |
| 510 | + function confirmEditMerged( $editPage, $newtext ) { |
511 | 511 | return $this->confirmEdit( $editPage, $newtext, false, true ); |
512 | 512 | } |
513 | 513 | |