Bryan Tong Minh schreef:
Directly scraping $wgTitle is of course not possible. MediaWiki::singleton()->getTitle(); would for now just be return $wgTitle; but in 2020 when no globals are used anymore, the globals can be killed.
Like you said, 2020. Maybe it's better to just wait until a group of people decides to rewrite the codebase (phase4), otherwise we'll just make stuff uglier.
Roan Kattouw (Catrope)