Patch by Marooned.
* Jeremy Baron
* Juliano F. Ravasi
* Louperivois
+* Marooned
* Matt Johnston
* Max Semenik
* Michael De La Rue
* (bug 15497) Removed encoding attribute from <?xml ?> tag
* (bug 15544) Wiki not set up message (NoLocalSettings.php) now works for
non-index.php entry pages (e.g. api.php). Patch by Matt Johnston.
+* (bug 12284) Special:Preferences now sets a returnto parameter on the link to Special:Userlogin. Patch by Marooned.
=== API changes in 1.14 ===
}
function execute() {
- global $wgUser, $wgOut;
+ global $wgUser, $wgOut, $wgTitle;
if ( $wgUser->isAnon() ) {
- $wgOut->showErrorPage( 'prefsnologin', 'prefsnologintext' );
+ $wgOut->showErrorPage( 'prefsnologin', 'prefsnologintext', array($wgTitle->getPrefixedDBkey()) );
return;
}
if ( wfReadOnly() ) {
'mypreferences' => 'My preferences',
'prefs-edits' => 'Number of edits:',
'prefsnologin' => 'Not logged in',
-'prefsnologintext' => 'You must be [[Special:UserLogin|logged in]] to set user preferences.',
+'prefsnologintext' => 'You must be <span class="plainlinks">[{{fullurl:Special:Userlogin|returnto=$1}} logged in]</span> to set user preferences.',
'prefsreset' => 'Preferences have been reset from storage.',
'qbsettings' => 'Quickbar',
'qbsettings-none' => 'None',