From b3b3280c0b27e9b9a5accf360236963dc0e19cc0 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 30 Dec 2008 18:53:56 +0000 Subject: [PATCH] Cleanup to r44994 -- use __METHOD__ rather than __FUNCTION__ in wfDeprecated() calls in constructors for deprecated classes. __FUNCTION__ will return only "__construct" which ain't quite what we want. :) --- includes/LogEventsList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index cdb38e4693..b69f34e8b4 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -713,7 +713,7 @@ class LogReader { */ function __construct( $request ) { global $wgUser, $wgOut; - wfDeprecated(__FUNCTION__); + wfDeprecated(__METHOD__); # Get parameters $type = $request->getVal( 'type' ); $user = $request->getText( 'user' ); @@ -760,7 +760,7 @@ class LogViewer { */ function __construct( &$reader, $flags = 0 ) { global $wgUser; - wfDeprecated(__FUNCTION__); + wfDeprecated(__METHOD__); $this->reader =& $reader; $this->reader->pager->mLogEventsList->flags = $flags; # Aliases for shorter code... -- 2.20.1