Deglobalization

Globals need to die. When everything in MediaWiki is class-based, globals break a lot of the time. This is a list of all the biggest violaters of the "no-globals" style.

At large

 * All configuration variables &mdash; Replace with new Conf class (harder than it looks: Requests for comment/Configuration database)
 * wgConf &mdash; Kill it with fire (and replace with new Conf class)
 * wgPageProps &mdash; Replace with PageProps class
 * wgTitle &mdash; Use the proper newFrom* functions; Various instances of classes like OutputPage and Article you may be working with will have their own getTitle that should be used
 * wgArticle &mdash; Use the proper newFrom* functions
 * wgLang &mdash; Replace with User::getLang

Disputed
These are argued to only be hiding the problem, not solving it. They should be considered either way.


 * wgUser &mdash; Replace with User::current.
 * wgOut &mdash; Ideally, replace with a proper output system

Now fixed

 * wgHooks &mdash; Hooks class (since r80435)