From: Roland Haeder Date: Sun, 18 Jan 2015 07:20:32 +0000 (+0100) Subject: Added missing method TagSub::getProfile() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=91a6232f0136663e4e01d66f937af81c77101a6a;p=quix0rs-gnu-social.git Added missing method TagSub::getProfile() Signed-off-by: Roland Haeder --- diff --git a/plugins/TagSub/classes/TagSub.php b/plugins/TagSub/classes/TagSub.php index 18023ac654..892f1942e8 100644 --- a/plugins/TagSub/classes/TagSub.php +++ b/plugins/TagSub/classes/TagSub.php @@ -132,4 +132,16 @@ class TagSub extends Managed_DataObject return $tags; } + + /** + * Getter for Profile instance + * + * @return $profile Profile instance + */ + public function getProfile () { + assert($this->profile_id > 0); + $profile = new Profile(); + $profile->id = $this->profile_id; + return $profile; + } }