$request = $this->getRequest();
foreach ( array_merge( $this->mAllowedRedirectParams,
- [ 'uselang', 'useskin', 'debug' ] // parameters which can be passed to all pages
+ [ 'uselang', 'useskin', 'debug', 'safemode' ] // parameters which can be passed to all pages
) as $arg ) {
if ( $request->getVal( $arg, null ) !== null ) {
$params[$arg] = $request->getVal( $arg );