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=74bb71520418f67a610a64cfb9285af1ffcb1d4a;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 5bc0c436ee..43c573e7cb 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; + } }