*/
function wfDeprecated( $function, $version = false, $component = false ) {
static $functionsWarned = array();
-
+
+ MWDebug::deprecated( $function, $version, $component );
+
if ( !in_array( $function, $GLOBALS['wgDeprecationWhitelist'] ) && !isset( $functionsWarned[$function] ) ) {
$functionsWarned[$function] = true;
function wfWarn( $msg, $callerOffset = 1, $level = E_USER_NOTICE ) {
global $wgDevelopmentWarnings;
+ MWDebug::warning( $msg, $callerOffset + 2 );
+
$callers = wfDebugBacktrace();
if ( isset( $callers[$callerOffset + 1] ) ) {
$callerfunc = $callers[$callerOffset + 1];