-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcomment_new.php
More file actions
executable file
·28 lines (28 loc) · 1.04 KB
/
comment_new.php
File metadata and controls
executable file
·28 lines (28 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* New comment form
*
* This file holds the configuration information of this module
*
* @copyright http://smartfactory.ca The SmartFactory
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @since 1.0
* @author marcan aka Marc-André Lanciault <marcan@smartfactory.ca>
*
*/
include_once 'header.php';
$com_itemid = isset($_GET['com_itemid']) ? intval($_GET['com_itemid']) : 0;
if ($com_itemid > 0) {
$imtagging_tag_handler = icms_getModulehandler('tag');
$tagObj = $imtagging_tag_handler->get($com_itemid);
if ($tagObj && !$tagObj->isNew()) {
// $com_replytext = _TAGEDBY.' <b>'.smartsection_getLinkedUnameFromId($itemObj->uid()) . '</b> '._DATE.' <b>'.$itemObj->dateSub().'</b><br /><br />'.$itemObj->summary();
$com_replytext = 'test...';
$bodytext = $tagObj->getTagLead();
if ($bodytext != '') {
$com_replytext .= '<br /><br />' . $bodytext . '';
}
$com_replytitle = $tagObj->getVar('tag_title');
include_once ICMS_ROOT_PATH . '/include/comment_new.php';
}
}