| @@ 79-84 (lines=6) @@ | ||
| 76 | // call a trigger (after) |
|
| 77 | ModuleHandler::triggerCall('comment.getCommentMenu', 'after', $menu_list); |
|
| 78 | ||
| 79 | if($this->grant->manager){ |
|
| 80 | $str_confirm = Context::getLang('confirm_move'); |
|
| 81 | $url = sprintf("if(!confirm('%s')) return; var params = new Array(); params['comment_srl']='%s'; params['mid']=current_mid;params['cur_url']=current_url; exec_xml('comment', 'procCommentAdminMoveToTrash', params)", $str_confirm, $comment_srl); |
|
| 82 | $oCommentController->addCommentPopupMenu($url,'cmd_trash','','javascript'); |
|
| 83 | ||
| 84 | } |
|
| 85 | ||
| 86 | // find a comment by IP matching if an administrator. |
|
| 87 | if($logged_info->is_admin == 'Y') |
|
| @@ 553-558 (lines=6) @@ | ||
| 550 | $oDocumentController->addDocumentPopupMenu($url,'cmd_print','','printDocument'); |
|
| 551 | // Call a trigger (after) |
|
| 552 | ModuleHandler::triggerCall('document.getDocumentMenu', 'after', $menu_list); |
|
| 553 | if($this->grant->manager) |
|
| 554 | { |
|
| 555 | $str_confirm = Context::getLang('confirm_move'); |
|
| 556 | $url = sprintf("if(!confirm('%s')) return; var params = new Array(); params['document_srl']='%s'; params['mid']=current_mid;params['cur_url']=current_url; exec_xml('document', 'procDocumentAdminMoveToTrash', params)", $str_confirm, $document_srl); |
|
| 557 | $oDocumentController->addDocumentPopupMenu($url,'cmd_trash','','javascript'); |
|
| 558 | } |
|
| 559 | ||
| 560 | // If you are managing to find posts by ip |
|
| 561 | if($logged_info->is_admin == 'Y') |
|