Fix the return-to-last-page on login/logout in MonoBook skin.
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 30 Apr 2004 06:40:25 +0000 (06:40 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 30 Apr 2004 06:40:25 +0000 (06:40 +0000)
includes/SkinPHPTal.php
includes/SpecialUserlogin.php

index 6de4a21..8c8857a 100644 (file)
                                );
                                $personal_urls['logout'] = array(
                                        'text' => wfMsg('userlogout'),
-                                       'href' => $this->makeSpecialUrl('Userlogout','returnpage=' . $this->thisurle),
+                                       'href' => $this->makeSpecialUrl('Userlogout','returnto=' . $this->thisurle),
                                        'ttip' => wfMsg('tooltip-logout'),
                                        'akey' => wfMsg('accesskey-logout')
                                );
                                        );
                                        $personal_urls['anonlogin'] = array(
                                                'text' => wfMsg('userlogin'),
-                                               'href' => $this->makeSpecialUrl('Userlogin', 'return='.$this->thisurle),
+                                               'href' => $this->makeSpecialUrl('Userlogin', 'returnto='.$this->thisurle),
                                                'ttip' => wfMsg('tooltip-login'),
                                                'akey' => wfMsg('accesskey-login')
                                        );
 
                                        $personal_urls['login'] = array(
                                                'text' => wfMsg('userlogin'),
-                                               'href' => $this->makeSpecialUrl('Userlogin', 'return='.$this->thisurle),
+                                               'href' => $this->makeSpecialUrl('Userlogin', 'returnto='.$this->thisurle),
                                                'ttip' => wfMsg('tooltip-login'),
                                                'akey' => wfMsg('accesskey-login')
                                        );
index 793224e..c950ed5 100644 (file)
@@ -25,7 +25,7 @@ class LoginForm {
                $this->mName = $request->getText( 'wpName' );
                $this->mPassword = $request->getText( 'wpPassword' );
                $this->mRetype = $request->getText( 'wpRetype' );
-               $this->mReturnto = $request->getText( 'returnto' );
+               $this->mReturnto = $request->getVal( 'returnto' );
                $this->mCookieCheck = $request->getVal( "wpCookieCheck" );
                $this->mPosted = $request->wasPosted();
                $this->mCreateaccount = $request->getCheck( 'wpCreateaccount' );