From: sakamocchi Date: Tue, 1 May 2012 14:10:02 +0000 (+0900) Subject: FIX: CommentActions::parse_itemlink()がアイテム配列を参照するよう修正 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=74381eea9f4cbc6cd2d57d3ef6c017a2e10dfa2a;hp=a9bc79b3a70e25830c1834547c5b5d665c64e342;p=nucleus-jp%2Fnucleus-next.git FIX: CommentActions::parse_itemlink()がアイテム配列を参照するよう修正 CommentActions::parse_itemlink()は、ItemActionsクラスを経由してItem構造を参照するが、これまでオブジェクトとして扱っていたItem構造は、新しいデータベースハンドラーを導入したことで連想配列となっていたことによる。 --- 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 );