Followup to r63922, per CR comments

This commit is contained in:
Happy-melon 2010-03-18 20:04:20 +00:00
parent c30239bf87
commit a6f122b28b

View file

@ -63,18 +63,15 @@ class InputBoxHooks {
}
$params = $request->getValues();
$title = $params['prefix'] . @$params['title'];
$title = $params['prefix'];
if ( isset( $params['title'] ) ){
$title .= $params['title'];
}
unset( $params['prefix'] );
unset( $params['title'] );
$url = "?title=$title";
foreach( $params as $key => $value ){
if( $key ){
$url .= "&{$key}={$value}";
}
}
$params['title'] = $title;
global $wgScript;
$output->redirect( $wgScript . $url, '301' );
$output->redirect( wfAppendQuery( $wgScript, $params ), '301' );
return false;
}
}