From 76e4820e02803c1c089d969a926dd85013c6d2d3 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 6 Oct 2009 22:14:40 +0000 Subject: [PATCH] Cleanup r57359 -- removing PHP4-isms (references not needed to pass objects unless you're going to replace them with different objects as outparams) --- docs/hooks.txt | 4 ++-- includes/User.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index ea24b0a4bd..4588503e9a 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -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 diff --git a/includes/User.php b/includes/User.php index cc74765449..a12349f0a4 100644 --- a/includes/User.php +++ b/includes/User.php @@ -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; } -- 2.20.1