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:
Brion Vibber 2009-08-21 21:51:29 +00:00
parent a63ff46b89
commit 84c2f656b7

View file

@ -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;