mw.log.deprecate: Use mw.log.warn instead of log.warn
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 28 Feb 2014 20:15:06 +0000 (21:15 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 28 Feb 2014 20:15:06 +0000 (21:15 +0100)
commitfd5049b37fbdfd36c77552863bc1a968fc38bbe9
tree3c46f99d7da00cb444a87881d2252f084faf06b5
parent66b736e5fb576cc7633835caaef2a7a0205b5236
mw.log.deprecate: Use mw.log.warn instead of log.warn

In qunit/testrunner.js, freshConfigCopy() temporarily clears
mw.log.warn to avoid a flood of spurious deprecation warnings.

However, as of 89a8fe4, the console was once again flooded with
deprecated notices when in debug mode because in debug mode we
load mediawiki.log.js which redefines the mw.log object and as
such the local reference here kept pointing to the original.

Change-Id: I2b560aac9c0b929c82bb628760c194c0476fe1a9
resources/mediawiki/mediawiki.js