diff --git a/plugins/Bookmark/Bookmark.php b/plugins/Bookmark/Bookmark.php index 6836744799..7e831a3524 100644 --- a/plugins/Bookmark/Bookmark.php +++ b/plugins/Bookmark/Bookmark.php @@ -144,7 +144,7 @@ class Bookmark extends Memcached_DataObject * * @return Bookmark found bookmark or null */ - function getByNotice($notice) + static function getByNotice($notice) { return self::staticGet('uri', $notice->uri); } diff --git a/plugins/GNUsocialPhoto/Photo.php b/plugins/GNUsocialPhoto/Photo.php index 2bbbe91fd5..97b78634d7 100644 --- a/plugins/GNUsocialPhoto/Photo.php +++ b/plugins/GNUsocialPhoto/Photo.php @@ -46,7 +46,7 @@ class Photo extends Managed_DataObject public $description; // text public $profile_id; // int - public function getByNotice($notice) + public static function getByNotice($notice) { return self::staticGet('uri', $notice->uri); } diff --git a/plugins/GNUsocialVideo/Video.php b/plugins/GNUsocialVideo/Video.php index 7525b22fe5..543fe9129f 100644 --- a/plugins/GNUsocialVideo/Video.php +++ b/plugins/GNUsocialVideo/Video.php @@ -43,7 +43,7 @@ class Video extends Managed_DataObject public $url; // varchar (255) public $profile_id; // int - public function getByNotice($notice) + public static function getByNotice($notice) { return self::staticGet('uri', $notice->uri); } diff --git a/plugins/Poll/Poll.php b/plugins/Poll/Poll.php index f9155def4a..41740f9a45 100644 --- a/plugins/Poll/Poll.php +++ b/plugins/Poll/Poll.php @@ -99,7 +99,7 @@ class Poll extends Managed_DataObject * * @return Poll found poll or null */ - function getByNotice($notice) + static function getByNotice($notice) { return self::staticGet('uri', $notice->uri); } diff --git a/plugins/Poll/Poll_response.php b/plugins/Poll/Poll_response.php index a63d790b53..b466e9f592 100644 --- a/plugins/Poll/Poll_response.php +++ b/plugins/Poll/Poll_response.php @@ -102,7 +102,7 @@ class Poll_response extends Managed_DataObject * * @return Poll_response found response or null */ - function getByNotice($notice) + static function getByNotice($notice) { return self::staticGet('uri', $notice->uri); } diff --git a/plugins/QnA/classes/QnA_Answer.php b/plugins/QnA/classes/QnA_Answer.php index 0d34f6baf8..5cbc80594c 100644 --- a/plugins/QnA/classes/QnA_Answer.php +++ b/plugins/QnA/classes/QnA_Answer.php @@ -120,7 +120,7 @@ class QnA_Answer extends Managed_DataObject * * @return QnA_Answer found response or null */ - function getByNotice($notice) + static function getByNotice($notice) { $answer = self::staticGet('uri', $notice->uri); if (empty($answer)) { diff --git a/plugins/QnA/classes/QnA_Question.php b/plugins/QnA/classes/QnA_Question.php index e1713b4660..a029a2434a 100644 --- a/plugins/QnA/classes/QnA_Question.php +++ b/plugins/QnA/classes/QnA_Question.php @@ -114,7 +114,7 @@ class QnA_Question extends Managed_DataObject * * @return Question found question or null */ - function getByNotice($notice) + static function getByNotice($notice) { return self::staticGet('uri', $notice->uri); }