From 537bee726d3185dd92038da6d15806b7192ca625 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 27 Mar 2005 01:23:40 +0000 Subject: [PATCH] Removing enchanted spaces --- includes/SearchEngine.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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; } -- 2.20.1