sforkowany z mirror/friendica
Finish renaming Object\Item to Object\Post
rodzic
3810b483cf
commit
d50d693fe3
|
@ -10,7 +10,7 @@ use Friendica\Core\System;
|
|||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Object\Thread;
|
||||
use Friendica\Object\Item;
|
||||
use Friendica\Object\Post;
|
||||
|
||||
require_once "include/bbcode.php";
|
||||
require_once "include/acl_selectors.php";
|
||||
|
@ -880,7 +880,7 @@ function conversation(App $a, $items, $mode, $update, $preview = false) {
|
|||
$item['pagedrop'] = $page_dropping;
|
||||
|
||||
if ($item['id'] == $item['parent']) {
|
||||
$item_object = new Item($item);
|
||||
$item_object = new Post($item);
|
||||
$conv->addParent($item_object);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ class Post extends BaseObject
|
|||
*
|
||||
* @param array $data data array
|
||||
*/
|
||||
public function __construct($data)
|
||||
public function __construct(array $data)
|
||||
{
|
||||
$a = self::getApp();
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
namespace Friendica\Object;
|
||||
|
||||
use Friendica\BaseObject;
|
||||
use Friendica\Object\Item;
|
||||
use Friendica\Object\Post;
|
||||
|
||||
require_once 'boot.php';
|
||||
require_once 'include/text.php';
|
||||
|
@ -120,7 +120,7 @@ class Thread extends BaseObject
|
|||
* @return mixed The inserted item on success
|
||||
* false on failure
|
||||
*/
|
||||
public function addParent($item)
|
||||
public function addParent(Post $item)
|
||||
{
|
||||
$item_id = $item->getId();
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue