prevents page editing
* (bug 9936) Per-edit suppression of preview-on-first edit with "preview=no"
* Allow showing a one-off preview on first edit with "preview=yes"
+* (bug 9151) Remove timed redirects on "Return to X" pages for accessibility.
== Bugfixes since 1.10 ==
/**
* return from error messages or notes
- * @param $auto automatically redirect the user after 10 seconds
+ * @param $unused No longer used
* @param $returnto page title to return to. Default is Main Page.
*/
- public function returnToMain( $auto = true, $returnto = NULL ) {
+ public function returnToMain( $unused = null, $returnto = NULL ) {
global $wgUser, $wgOut, $wgRequest;
if ( $returnto == NULL ) {
$link = $sk->makeLinkObj( $titleObj, '' );
$r = wfMsg( 'returnto', $link );
- if ( $auto ) {
- $wgOut->addMeta( 'http:Refresh', '10;url=' . $titleObj->escapeFullURL() );
- }
$wgOut->addHTML( "\n<p>$r</p>\n" );
}