]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
pass through $idField and $createdField in Notice queries
authorEvan Prodromou <evan@status.net>
Tue, 28 Dec 2010 06:35:57 +0000 (22:35 -0800)
committerEvan Prodromou <evan@status.net>
Tue, 28 Dec 2010 06:35:57 +0000 (22:35 -0800)
classes/Notice.php

index 50909f97071e31f339b0b35d66921386c0a94014..14fffe69763213bd63f47bf3246a0855a745e2f0 100644 (file)
@@ -2033,7 +2033,7 @@ class Notice extends Memcached_DataObject
      */
     public static function addWhereSinceId(DB_DataObject $obj, $id, $idField='id', $createdField='created')
     {
-        $since = self::whereSinceId($id);
+        $since = self::whereSinceId($id, $idField, $createdField);
         if ($since) {
             $obj->whereAdd($since);
         }
@@ -2072,7 +2072,7 @@ class Notice extends Memcached_DataObject
      */
     public static function addWhereMaxId(DB_DataObject $obj, $id, $idField='id', $createdField='created')
     {
-        $max = self::whereMaxId($id);
+        $max = self::whereMaxId($id, $idField, $createdField);
         if ($max) {
             $obj->whereAdd($max);
         }