Manual:$wgHiddenPrefs

Details
$wgHiddenPrefs is an array to disable certain user preferences (preferences system was rewritten in 1.16).

This obsoletes $wgAllowRealName = false; with the following code: