From: Ævar Arnfjörð Bjarmason Date: Sat, 29 Oct 2005 06:29:19 +0000 (+0000) Subject: * Last commmit fixed, done properly now X-Git-Tag: 1.6.0~1274 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=e91c91177e20624322ebb36c6770b1be0150ba0d;p=lhc%2Fweb%2Fwiklou.git * Last commmit fixed, done properly now --- 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 {