Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -481,7 +481,7 @@ |
482 | 482 | $personal_urls['logout'] = array( |
483 | 483 | 'text' => wfMsg('userlogout'), |
484 | 484 | 'href' => $this->makeSpecialUrl( 'Userlogout', |
485 | | - $this->thisurl === $wgContLang->getNsText( NS_SPECIAL ) . ':' . 'Preferences' ? '' : "returnto={$this->thisurl}" |
| 485 | + $wgTitle->getNamespace() === NS_SPECIAL && $wgTitle->getText() === 'Preferences' ? '' : "returnto={$this->thisurl}" |
486 | 486 | ) |
487 | 487 | ); |
488 | 488 | } else { |