|Subject:||Cannot use a custom useragent|
CMS-MediaWiki does not expose the user agent it uses. This means that if you need to customize your useragent in order to access a wiki (for instance, if it's behind a HTTP Auth wall), you simply cannot use CMS-Mediawiki to access that wiki without major subclassing, or more likely, just running with a slightly forked version. Better solution: Make $object->ua override the singleton. Slightly worse solution: Don't use a singleton at all, but just create and allow the user to change $object->ua. Even worse, but minimal solution (and what I've actually used to fix this): Expose $CMS::MediaWiki::ua, so the user can set it to a custom useragent.