diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-10-09 12:39:45 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-10-09 12:39:45 -0400 |
commit | 79cf12c11e6e16e59be8d485ff26714b5c6fb55d (patch) | |
tree | 8ce9d426e47e81a685dd0a0830266708f5c7d1b7 | |
parent | 566d0850be54c1a1c79028ac536faa31358a55fe (diff) | |
download | elgg-79cf12c11e6e16e59be8d485ff26714b5c6fb55d.tar.gz elgg-79cf12c11e6e16e59be8d485ff26714b5c6fb55d.tar.bz2 |
Fixes #3796 get_site_by_url() now respects class inheritance
-rw-r--r-- | engine/lib/sites.php | 2 |
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; |