From 74381eea9f4cbc6cd2d57d3ef6c017a2e10dfa2a Mon Sep 17 00:00:00 2001 From: sakamocchi Date: Tue, 1 May 2012 23:10:02 +0900 Subject: [PATCH 1/1] =?utf8?q?FIX:=20CommentActions::parse=5Fitemlink()?= =?utf8?q?=E3=81=8C=E3=82=A2=E3=82=A4=E3=83=86=E3=83=A0=E9=85=8D=E5=88=97?= =?utf8?q?=E3=82=92=E5=8F=82=E7=85=A7=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?utf8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit CommentActions::parse_itemlink()は、ItemActionsクラスを経由してItem構造を参照するが、これまでオブジェクトとして扱っていたItem構造は、新しいデータベースハンドラーを導入したことで連想配列となっていたことによる。 --- nucleus/libs/COMMENTACTIONS.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nucleus/libs/COMMENTACTIONS.php b/nucleus/libs/COMMENTACTIONS.php index ce592ec..9c50ece 100644 --- a/nucleus/libs/COMMENTACTIONS.php +++ b/nucleus/libs/COMMENTACTIONS.php @@ -417,8 +417,8 @@ class CommentActions extends BaseActions { $data = array( 'itemid' => $this->commentsObj->itemid, - 'timestamp' => $this->commentsObj->itemActions->currentItem->timestamp, - 'title' => $this->commentsObj->itemActions->currentItem->title, + 'timestamp' => $this->commentsObj->itemActions->currentItem['timestamp'], + 'title' => $this->commentsObj->itemActions->currentItem['title'], 'extra' => $this->commentsObj->itemActions->linkparams ); -- 2.11.0