diff options
Diffstat (limited to 'include/ItemObject.php')
-rw-r--r-- | include/ItemObject.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php index 818f8c0b2..6088a2c1c 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -28,13 +28,13 @@ class Item extends BaseObject { private $visiting = false; private $channel = null; + public function __construct($data) { $a = $this->get_app(); $this->data = $data; $this->toplevel = ($this->get_id() == $this->get_data_value('parent')); - // Prepare the children if(count($data['children'])) { foreach($data['children'] as $item) { @@ -538,7 +538,11 @@ class Item extends BaseObject { '$edvideo' => t('Video'), '$preview' => ((feature_enabled($conv->get_profile_owner(),'preview')) ? t('Preview') : ''), '$indent' => $indent, + '$feature_encrypt' => ((feature_enabled($conv->get_profile_owner(),'content_encrypt')) ? true : false), + '$encrypt' => t('Encrypt text'), + '$cipher' => $conv->get_cipher(), '$sourceapp' => get_app()->sourcename + )); return $comment_box; |