public static function edit()
 {
     $id = JCommentsInput::getVar('cid', 0);
     if (is_array($id)) {
         $id = $id[0];
     }
     require_once JCOMMENTS_TABLES . '/subscription.php';
     $db = JCommentsFactory::getDBO();
     $row = new JCommentsTableSubscription($db);
     if ($id) {
         $row->load($id);
         $row->object_title = JCommentsBackendObjectHelper::getTitle($row->object_id, $row->object_group, $row->lang);
         $row->link = JCommentsBackendObjectHelper::getLink($row->object_id, $row->object_group, $row->lang);
     }
     HTML_JCommentsAdminSubscriptionManager::edit($row);
 }
 function edit()
 {
     global $mainframe;
     $id = JCommentsInput::getVar('cid', 0);
     if (is_array($id)) {
         $id = $id[0];
     }
     $db =& JCommentsFactory::getDBO();
     require_once JCOMMENTS_BASE . DS . 'jcomments.subscription.php';
     $row = new JCommentsSubscriptionsDB($db);
     if ($id) {
         $row->load($id);
         $row->object_title = JCommentsObjectHelper::getTitle($row->object_id, $row->object_group, $row->lang);
         $row->link = $mainframe->getCfg('live_site') . '/' . JCOMMENTS_INDEX . '?option=com_jcomments&task=go2object&object_id=' . $row->object_id . '&object_group=' . $row->object_group . '&no_html=1';
     }
     HTML_JCommentsAdminSubscriptionManager::edit($row);
 }