diff --git a/classes/Notice.php b/classes/Notice.php index 83a8eaa3e8..a1750dda4d 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -216,9 +216,9 @@ class Notice extends Managed_DataObject return $this->url ?: $this->uri; } - public function getByUri($uri) + public static function getByUri($uri) { - return Notice::getKV('uri', $uri); + return static::getKV('uri', $uri); } /**