]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Event/Happening.php
The overloaded DB_DataObject function staticGet is now called getKV
[quix0rs-gnu-social.git] / plugins / Event / Happening.php
index 52aa206435e23f484442ff862c6bb98e0d7863c4..2b097e9077d6470164227406bf731fe5c8b427d2 100644 (file)
@@ -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()