Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -2547,6 +2547,10 @@ |
2548 | 2548 | * @return null |
2549 | 2549 | */ |
2550 | 2550 | function wfDeprecated( $function ) { |
| 2551 | + global $wgDebugLogFile; |
| 2552 | + if ( !$wgDebugLogFile ) { |
| 2553 | + return; |
| 2554 | + } |
2551 | 2555 | $callers = wfDebugBacktrace(); |
2552 | 2556 | if( isset( $callers[2] ) ){ |
2553 | 2557 | $callerfunc = $callers[2]; |
— | — | @@ -2560,10 +2564,11 @@ |
2561 | 2565 | if( isset( $callerfunc['class'] ) ) |
2562 | 2566 | $func .= $callerfunc['class'] . '::'; |
2563 | 2567 | $func .= @$callerfunc['function']; |
2564 | | - trigger_error( "Use of $function is deprecated. Called from $func in $file", E_USER_NOTICE ); |
| 2568 | + $msg = "Use of $function is deprecated. Called from $func in $file"; |
2565 | 2569 | } else { |
2566 | | - trigger_error( "Use of $function is deprecated.", E_USER_NOTICE ); |
| 2570 | + $msg = "Use of $function is deprecated."; |
2567 | 2571 | } |
| 2572 | + wfDebug( "$msg\n" ); |
2568 | 2573 | } |
2569 | 2574 | |
2570 | 2575 | /** |