1
0
Fork 0

Item: new method get_comment_box

This commit is contained in:
Domovoy 2012-08-12 16:02:47 +02:00
commit 71f11a9a32
3 changed files with 68 additions and 43 deletions

View file

@ -105,13 +105,13 @@ class Conversation extends BaseObject {
* _ The data requested on success
* _ false on failure
*/
public function get_template_data($cmnt_tpl, $alike, $dlike) {
public function get_template_data($alike, $dlike) {
$result = array();
foreach($this->threads as $item) {
if($item->get_data_value('network') === NETWORK_MAIL && local_user() != $item->get_data_value('uid'))
continue;
$item_data = $item->get_template_data($cmnt_tpl, $alike, $dlike);
$item_data = $item->get_template_data($alike, $dlike);
if(!$item_data) {
logger('[ERROR] Conversation::get_template_data : Failed to get item template data ('. $item->get_id() .').', LOGGER_DEBUG);
return false;