aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-25 19:21:21 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-25 19:21:21 +0000
commit401fd957b30219a610014d4236de35b6220fd310 (patch)
tree072d7ef4b88000ff20df90724e4f798bf5448b74 /engine/lib/sites.php
parentfb24a60da5ea1627c8336e387217bd6ca2b45f74 (diff)
downloadelgg-401fd957b30219a610014d4236de35b6220fd310.tar.gz
elgg-401fd957b30219a610014d4236de35b6220fd310.tar.bz2
Closes #79: Email confirmation on registration & email change
http://trac.elgg.org/elgg/ticket/79 git-svn-id: https://code.elgg.org/elgg/trunk@1137 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r--engine/lib/sites.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index 441a649ad..40ff02f6c 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -554,8 +554,10 @@
$guid = (int)$guid;
$site = get_entity($site);
- if ($site instanceof ElggSite)
- return parse_url($site->url, 'host');
+ if ($site instanceof ElggSite) {
+ $breakdown = parse_url($site->url);
+ return $breakdown['host'];
+ }
return false;
}