/** * Cancels an edit operation * * @param string $ The name of the category section * @param integer $ A unique category id */ function cancelCategory() { $database = JFactory::getDBO(); $mainframe = JFactory::getApplication(); $row = new mosDMCategory($database); $row->bind(DOCMAN_Utils::stripslashes($_POST)); $row->checkin(); $mainframe->redirect('index.php?option=com_docman§ion=categories'); }
/** * Cancels an edit operation * * @param string $ The name of the category section * @param integer $ A unique category id */ function cancelCategory() { global $database; $row = new mosDMCategory($database); $row->bind(DOCMAN_Utils::stripslashes($_POST)); $row->checkin(); mosRedirect('index2.php?option=com_docman§ion=categories'); }