X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FEvent%2FHappening.php;h=2b097e9077d6470164227406bf731fe5c8b427d2;hb=2a4dc77a633cc78907934fd93200ac16d55be78e;hp=52aa206435e23f484442ff862c6bb98e0d7863c4;hpb=e95f77d34c501d345e731ccf6bc722034d155b77;p=quix0rs-gnu-social.git diff --git a/plugins/Event/Happening.php b/plugins/Event/Happening.php index 52aa206435..2b097e9077 100644 --- a/plugins/Event/Happening.php +++ b/plugins/Event/Happening.php @@ -105,7 +105,7 @@ class Happening extends Managed_DataObject static function saveNew($profile, $start_time, $end_time, $title, $location, $description, $url, $options=array()) { if (array_key_exists('uri', $options)) { - $other = Happening::staticGet('uri', $options['uri']); + $other = Happening::getKV('uri', $options['uri']); if (!empty($other)) { // TRANS: Client exception thrown when trying to create an event that already exists. throw new ClientException(_m('Event already exists.')); @@ -189,12 +189,12 @@ class Happening extends Managed_DataObject function getNotice() { - return Notice::staticGet('uri', $this->uri); + return Notice::getKV('uri', $this->uri); } static function fromNotice($notice) { - return Happening::staticGet('uri', $notice->uri); + return Happening::getKV('uri', $notice->uri); } function getRSVPs()