(bug 9151) Remove timed redirects on "Return to X" pages for accessibility.
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 10 Jul 2007 21:47:36 +0000 (21:47 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 10 Jul 2007 21:47:36 +0000 (21:47 +0000)
RELEASE-NOTES
includes/OutputPage.php

index 6a0b065..d8e4cfb 100644 (file)
@@ -130,6 +130,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   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 ==
 
index ffc10b2..fc7a621 100644 (file)
@@ -1072,10 +1072,10 @@ class OutputPage {
 
        /**
         * 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 ) {
@@ -1099,9 +1099,6 @@ class OutputPage {
                $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" );
        }