]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3796 get_site_by_url() now respects class inheritance
authorCash Costello <cash.costello@gmail.com>
Sun, 9 Oct 2011 16:39:45 +0000 (12:39 -0400)
committerCash Costello <cash.costello@gmail.com>
Sun, 9 Oct 2011 16:39:45 +0000 (12:39 -0400)
engine/lib/sites.php

index 0f73743868106bf7631cd9cca0861c0bf2c6d2a4..337b2d180056355de0db9a66e07223a26c028a34 100644 (file)
@@ -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;