Cleanup r57359 -- removing PHP4-isms (references not needed to pass objects unless...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 6 Oct 2009 22:14:40 +0000 (22:14 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 6 Oct 2009 22:14:40 +0000 (22:14 +0000)
docs/hooks.txt
includes/User.php

index ea24b0a..4588503 100644 (file)
@@ -565,7 +565,7 @@ $unpatrolled:  Whether or not we are showing unpatrolled changes.
 $watched:      Whether or not the change is watched by the user.
 
 'ConfirmEmailComplete': Called after a user's email has been confirmed successfully
-&$user: user (object) whose email is being confirmed
+$user: user (object) whose email is being confirmed
 
 'ContribsPager::getQueryInfo': Before the contributions query is about to run
 &$pager: Pager object for contributions
@@ -848,7 +848,7 @@ but after noinclude/includeonly/onlyinclude and other processing.
 &$this->mStripState: Parser's internal StripState object
 
 'InvalidateEmailComplete': Called after a user's email has been invalidated successfully
-&$user: user (object) whose email is being invalidated
+$user: user (object) whose email is being invalidated
 
 'IsFileCacheable': Override the result of Article::isFileCacheable() (if true)
 $article: article (object) being checked
index cc74765..a12349f 100644 (file)
@@ -2946,7 +2946,7 @@ class User {
         */
        function confirmEmail() {
                $this->setEmailAuthenticationTimestamp( wfTimestampNow() );
-               wfRunHooks( 'ConfirmEmailComplete', array( &$this ) );
+               wfRunHooks( 'ConfirmEmailComplete', array( $this ) );
                return true;
        }
 
@@ -2961,7 +2961,7 @@ class User {
                $this->mEmailToken = null;
                $this->mEmailTokenExpires = null;
                $this->setEmailAuthenticationTimestamp( null );
-               wfRunHooks( 'InvalidateEmailComplete', array( &$this ) );
+               wfRunHooks( 'InvalidateEmailComplete', array( $this ) );
                return true;
        }