OSDN Git Service

FIX: CommentActions::parse_itemlink()がアイテム配列を参照するよう修正
authorsakamocchi <o-takashi@sakamocchi.jp>
Tue, 1 May 2012 14:10:02 +0000 (23:10 +0900)
committersakamocchi <o-takashi@sakamocchi.jp>
Tue, 1 May 2012 14:10:02 +0000 (23:10 +0900)
CommentActions::parse_itemlink()は、ItemActionsクラスを経由してItem構造を参照するが、これまでオブジェクトとして扱っていたItem構造は、新しいデータベースハンドラーを導入したことで連想配列となっていたことによる。

nucleus/libs/COMMENTACTIONS.php

index ce592ec..9c50ece 100644 (file)
@@ -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
                );