mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 08:13:53 +00:00
Cleaning up some old PHP 4 object-reference usage in some edit filtering hooks.
There was a mix of uses of the reference and non-uses of the reference. :) Reverts r53714 and fixes it from the other end by cleaning up the uses to not expect references.
This commit is contained in:
parent
a63ff46b89
commit
84c2f656b7
|
@ -23,7 +23,7 @@ class ConfirmEditHooks {
|
|||
return self::getInstance()->confirmEditMerged( $editPage, $newtext );
|
||||
}
|
||||
|
||||
static function confirmEditAPI( &$editPage, $newtext, &$resultArr ) {
|
||||
static function confirmEditAPI( $editPage, $newtext, &$resultArr ) {
|
||||
return self::getInstance()->confirmEditAPI( $editPage, $newtext, $resultArr );
|
||||
}
|
||||
|
||||
|
@ -509,7 +509,7 @@ class SimpleCaptcha {
|
|||
}
|
||||
|
||||
|
||||
function confirmEditAPI( &$editPage, $newtext, &$resultArr ) {
|
||||
function confirmEditAPI( $editPage, $newtext, &$resultArr ) {
|
||||
if ( !$this->doConfirmEdit( $editPage, $newtext, false, false ) ) {
|
||||
$this->addCaptchaAPI( $resultArr );
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue