Prevent bug 17790 from reappearing on Special:Preferences
authorMax Semenik <maxsem@users.mediawiki.org>
Sat, 16 Apr 2011 07:39:41 +0000 (07:39 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Sat, 16 Apr 2011 07:39:41 +0000 (07:39 +0000)
includes/SkinTemplate.php

index 6557754..d40c073 100644 (file)
@@ -626,7 +626,9 @@ class SkinTemplate extends Skin {
                        $personal_urls['logout'] = array(
                                'text' => wfMsg( 'userlogout' ),
                                'href' => self::makeSpecialUrl( 'Userlogout',
-                                       $title->isSpecial( 'Preferences' ) ? '' : $returnto
+                                       // userlogout link must always contain an & character, otherwise we might not be able
+                                       // to detect a buggy precaching proxy (bug 17790)
+                                       $title->isSpecial( 'Preferences' ) ? 'noreturnto' : $returnto
                                ),
                                'active' => false
                        );