From e91c91177e20624322ebb36c6770b1be0150ba0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 29 Oct 2005 06:29:19 +0000 Subject: [PATCH] * Last commmit fixed, done properly now --- includes/SkinTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 1496e20404..7b333215b7 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -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 { -- 2.20.1