Don't use back-compat globals $wgTitle and $wgRequest

The Skin has been passed to this hook since 2011.

Change-Id: Ibb30cd7631a9040d35742c604f3ebf9b050da8e7
Merge "Don't use back-compat globals $wgTitle and $wgRequest"