]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #1238: Added ElggExtender::getOwnerEntity() and changed ElggExtender::getOwner...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 16 Sep 2009 00:03:44 +0000 (00:03 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 16 Sep 2009 00:03:44 +0000 (00:03 +0000)
Also, this fixes a bug with checking permissions on annotations.

git-svn-id: https://code.elgg.org/elgg/trunk@3487 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/extender.php

index f3f3753bcdd456c7ac19fa44653a90cd245d3133..456a1f778a59430eda0014d8b23e906f59544bea 100644 (file)
                 */
                public function getOwner() 
                { 
-                       return get_user($this->owner_guid); 
+                       return $this->owner_guid; 
+               }
+
+               /**
+                * Return the owner entity
+                *
+                * @return mixed
+                */
+               public function getOwnerEntity()
+               {
+                       return get_user($this->owner_guid);
                }
                
                /**
        /** Register the hook */
        register_plugin_hook("import", "all", "import_extender_plugin_hook", 2);
        
-?>
\ No newline at end of file
+?>