From: Ævar Arnfjörð Bjarmason Date: Sun, 27 Mar 2005 01:23:40 +0000 (+0000) Subject: Removing enchanted spaces X-Git-Tag: 1.5.0alpha1~496 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=537bee726d3185dd92038da6d15806b7192ca625;p=lhc%2Fweb%2Fwiklou.git Removing enchanted spaces --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index fc5dfc629b..6526de4759 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -77,8 +77,7 @@ class SearchEngine { $title = Title::newFromText( $term ); # Entering an IP address goes to the contributions page - if ( ( $title->getNameSpace() == NS_USER && User::isIP($title->getText() ) ) - || User::isIP( trim( $term ) ) ) { + if ( ( $title->getNameSpace() == NS_USER && User::isIP($title->getText() ) ) || User::isIP(trim($term)) ) { $t2 = Title::makeTitle( NS_SPECIAL, "Contributions/" . $title->getText() ); return $t2; } @@ -86,10 +85,10 @@ class SearchEngine { # Entering a user goes to the user page whether it's there or not if ( $title->getNameSpace() == NS_USER ) { - if (User::idFromName($title->getText())) { - return $title; - } - } + if (User::idFromName($title->getText())) { + return $title; + } + } return NULL; }