Index: trunk/phase3/CREDITS |
— | — | @@ -86,6 +86,7 @@ |
87 | 87 | * RememberTheDot |
88 | 88 | * René Kijewski |
89 | 89 | * ST47 |
| 90 | +* Simon Walker |
90 | 91 | * Stefano |
91 | 92 | * Str4nd |
92 | 93 | |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -3759,3 +3759,9 @@ |
3760 | 3760 | * Has no effect if no tags are defined in valid_tag. |
3761 | 3761 | */ |
3762 | 3762 | $wgUseTagFilter = true; |
| 3763 | + |
| 3764 | +/** |
| 3765 | + * Allow redirection to another page when a user logs in. |
| 3766 | + * To enable, set to a string like 'Main Page' |
| 3767 | + */ |
| 3768 | +$wgRedirectOnLogin = null; |
Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | */ |
47 | 47 | function LoginForm( &$request, $par = '' ) { |
48 | 48 | global $wgLang, $wgAllowRealName, $wgEnableEmail; |
49 | | - global $wgAuth; |
| 49 | + global $wgAuth, $wgRedirectOnLogin; |
50 | 50 | |
51 | 51 | $this->mType = ( $par == 'signup' ) ? $par : $request->getText( 'type' ); # Check for [[Special:Userlogin/signup]] |
52 | 52 | $this->mName = $request->getText( 'wpName' ); |
— | — | @@ -66,6 +66,10 @@ |
67 | 67 | $this->mLanguage = $request->getText( 'uselang' ); |
68 | 68 | $this->mSkipCookieCheck = $request->getCheck( 'wpSkipCookieCheck' ); |
69 | 69 | |
| 70 | + if ( $wgRedirectOnLogin ) { |
| 71 | + $this->mReturnTo = $wgRedirectOnLogin; |
| 72 | + } |
| 73 | + |
70 | 74 | if( $wgEnableEmail ) { |
71 | 75 | $this->mEmail = $request->getText( 'wpEmail' ); |
72 | 76 | } else { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -27,6 +27,8 @@ |
28 | 28 | from rel="nofollow" on external links |
29 | 29 | * (bug 12970) Added $wgForceClientThumbnails to force client rendering of thumbs, |
30 | 30 | instead of falling back to GD. |
| 31 | +* Added $wgRedirectOnLogin to allow specifying a specifc page to redirect users |
| 32 | + to upon logging in (ex: "Main Page") |
31 | 33 | |
32 | 34 | === New features in 1.15 === |
33 | 35 | |
— | — | @@ -127,6 +129,8 @@ |
128 | 130 | of $wgSpamRegex for edit summary checks. Text checks still use $wgSpamRegex. |
129 | 131 | * New function to convert content text to specified language (only applies on wiki with |
130 | 132 | LanguageConverter class) |
| 133 | +* (bug 17844) Redirect users to a specific page when they log in, see |
| 134 | + $wgRedirectOnLogin |
131 | 135 | |
132 | 136 | === Bug fixes in 1.15 === |
133 | 137 | * (bug 16968) Special:Upload no longer throws useless warnings. |