X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdebug%2FDebug.php;h=0c0052f434792948e108098d21945883d6f15fa9;hb=02e82b703119c183d0933870539891ee00d23f9b;hp=211f74a04462089331fdf399dbc310144563c136;hpb=ad8b234b1bf30dc342284b1a8fc39a4b27ce0840;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/debug/Debug.php b/includes/debug/Debug.php index 211f74a044..0c0052f434 100644 --- a/includes/debug/Debug.php +++ b/includes/debug/Debug.php @@ -145,9 +145,10 @@ class MWDebug { // Check to see if there was already a deprecation notice, so not to // get a duplicate warning $logCount = count( self::$log ); + $caller = wfGetCaller( $callerOffset + 1 ); if ( $logCount ) { $lastLog = self::$log[ $logCount - 1 ]; - if ( $lastLog['type'] == 'deprecated' && $lastLog['caller'] == wfGetCaller( $callerOffset + 1 ) ) { + if ( $lastLog['type'] == 'deprecated' && $lastLog['caller'] == $caller ) { return; } } @@ -155,7 +156,7 @@ class MWDebug { self::$log[] = array( 'msg' => htmlspecialchars( $msg ), 'type' => 'warn', - 'caller' => wfGetCaller( $callerOffset ), + 'caller' => $caller, ); }