git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit c36608b2 authored by mmn's avatar mmn

Some statically called functions in plugins now declared statically

parent 6c4c4319
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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)) {
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment