aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-09 12:39:45 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-09 12:39:45 -0400
commit79cf12c11e6e16e59be8d485ff26714b5c6fb55d (patch)
tree8ce9d426e47e81a685dd0a0830266708f5c7d1b7 /engine
parent566d0850be54c1a1c79028ac536faa31358a55fe (diff)
downloadelgg-79cf12c11e6e16e59be8d485ff26714b5c6fb55d.tar.gz
elgg-79cf12c11e6e16e59be8d485ff26714b5c6fb55d.tar.bz2
Fixes #3796 get_site_by_url() now respects class inheritance
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/sites.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index 0f7374386..337b2d180 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -205,7 +205,7 @@ function get_site_by_url($url) {
$row = get_data_row("SELECT * from {$CONFIG->dbprefix}sites_entity where url='$url'");
if ($row) {
- return new ElggSite($row);
+ return get_entity($row->guid);
}
return false;