From: Brion Vibber Date: Fri, 21 Aug 2009 21:51:29 +0000 (+0000) Subject: Cleaning up some old PHP 4 object-reference usage in some edit filtering hooks. X-Git-Url: https://git.toastfreeware.priv.at/toast/cookiecaptcha.git/commitdiff_plain/84c2f656b749d97903f78cf4d77a254107ee83a2 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. --- diff --git a/ConfirmEdit_body.php b/ConfirmEdit_body.php index faedc2f..8c0d780 100644 --- a/ConfirmEdit_body.php +++ b/ConfirmEdit_body.php @@ -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;