diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-25 12:05:13 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-25 12:05:13 +0000 |
commit | d36689c70d06c08cc5aaf6c9edaa0b29b5c92142 (patch) | |
tree | 25e9831164eeeb1346cb2a95d37f38800361a9d0 /engine/lib/sites.php | |
parent | a84d840c9d037e23dfb65577d44bd02faf50d997 (diff) | |
download | elgg-d36689c70d06c08cc5aaf6c9edaa0b29b5c92142.tar.gz elgg-d36689c70d06c08cc5aaf6c9edaa0b29b5c92142.tar.bz2 |
Fixes #84: Method for retrieving preferences for a user and notifying accordingly
http://trac.elgg.org/elgg/ticket/84
git-svn-id: https://code.elgg.org/elgg/trunk@1120 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r-- | engine/lib/sites.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php index 0878bb66b..441a649ad 100644 --- a/engine/lib/sites.php +++ b/engine/lib/sites.php @@ -544,6 +544,21 @@ return false; } + /** + * Retrieve a site and return the domain portion of its url. + * + * @param int $guid + */ + function get_site_domain($guid) + { + $guid = (int)$guid; + + $site = get_entity($site); + if ($site instanceof ElggSite) + return parse_url($site->url, 'host'); + + return false; + } /**
* Initialise site handling
|