From: Brion Vibber Date: Tue, 30 Dec 2008 18:53:56 +0000 (+0000) Subject: Cleanup to r44994 -- use __METHOD__ rather than __FUNCTION__ in wfDeprecated() calls... X-Git-Tag: 1.31.0-rc.0~43692 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=b3b3280c0b27e9b9a5accf360236963dc0e19cc0;p=lhc%2Fweb%2Fwiklou.git 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. :) --- 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...