From ee273e65489c633088260aad189d864b824ab7c0 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 7 Dec 2017 23:36:33 -0500 Subject: [PATCH] Fix class Object\Item not found in Object\Post --- src/Object/Post.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Object/Post.php b/src/Object/Post.php index 8d56034a5e..902435b513 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -89,7 +89,7 @@ class Post extends BaseObject } $item['pagedrop'] = $data['pagedrop']; - $child = new Item($item); + $child = new Post($item); $this->addChild($child); } } @@ -471,14 +471,14 @@ class Post extends BaseObject * * @return mixed */ - public function addChild(Item $item) + public function addChild(Post $item) { $item_id = $item->getId(); if (!$item_id) { - logger('[ERROR] Item::addChild : Item has no ID!!', LOGGER_DEBUG); + logger('[ERROR] Post::addChild : Item has no ID!!', LOGGER_DEBUG); return false; } elseif ($this->getChild($item->getId())) { - logger('[WARN] Item::addChild : Item already exists ('. $item->getId() .').', LOGGER_DEBUG); + logger('[WARN] Post::addChild : Item already exists ('. $item->getId() .').', LOGGER_DEBUG); return false; } /*