aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/entities.php2
-rw-r--r--mod/blog/start.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 2752b4a08..da32d134e 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -287,7 +287,7 @@
*
* @return ElggEntity The owning user
*/
- public function getOwnerUser() { return get_entity($this->get('owner_guid')); }
+ public function getOwnerEntity() { return get_entity($this->get('owner_guid')); }
/**
* Enter description here...
diff --git a/mod/blog/start.php b/mod/blog/start.php
index d7157c40b..0df79a5cf 100644
--- a/mod/blog/start.php
+++ b/mod/blog/start.php
@@ -87,7 +87,7 @@
function blog_url($blogpost) {
global $CONFIG;
- return $CONFIG->url . "blog/" . $blogpost->getOwnerUser()->username . "/read/" . $blogpost->getGUID();
+ return $CONFIG->url . "blog/" . $blogpost->getOwnerEntity()->username . "/read/" . $blogpost->getGUID();
}