Give a warning when people use $wgArticle. Add's a class that can be used to give...
authorBrian Wolff <bawolff@users.mediawiki.org>
Mon, 13 Feb 2012 00:19:06 +0000 (00:19 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Mon, 13 Feb 2012 00:19:06 +0000 (00:19 +0000)
commitd5b26e049a031ec9fcfc06ed12ee0931094a8902
tree2b2fdf2b11fdc3e7503c34e320477f7ae978fa2f
parent542bae9af901f4d2f0a956b64baf7e9016302b90
Give a warning when people use $wgArticle. Add's a class that can be used to give warnings for other globals too.

See discussion on r111168.

Of course no one will see warning because trunk has $wgDeprecationReleaseLimit set to 1.17 by default
(<rant>have I mentioned how I don't like that variable. People enable warnings to be *warned* about
things. Making it so people won't get warned about things until a couple months after we've decided people
should stop using function/interface/etc defeats the purpose of having warnings</rant>)

p.s. Wasn't sure if this waranted something in the release notes, I don't think it does (It's just adding a warning)
but wasn't sure.
includes/AutoLoader.php
includes/DeprecatedGlobal.php [new file with mode: 0644]
includes/GlobalFunctions.php
includes/Wiki.php