* Last commmit fixed, done properly now
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sat, 29 Oct 2005 06:29:19 +0000 (06:29 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sat, 29 Oct 2005 06:29:19 +0000 (06:29 +0000)
includes/SkinTemplate.php

index 1496e20..7b33321 100644 (file)
@@ -481,7 +481,7 @@ class SkinTemplate extends Skin {
                        $personal_urls['logout'] = array(
                                'text' => wfMsg('userlogout'),
                                'href' => $this->makeSpecialUrl( 'Userlogout',
-                                       $this->thisurl === $wgContLang->getNsText( NS_SPECIAL ) . ':' . 'Preferences' ? '' : "returnto={$this->thisurl}" 
+                                       $wgTitle->getNamespace() === NS_SPECIAL && $wgTitle->getText() === 'Preferences' ? '' : "returnto={$this->thisurl}" 
                                )
                        );
                } else {