/** * Moves the order of a record * * @param integer $ The increment to reorder by */ function orderCategory($uid, $inc) { $database = JFactory::getDBO(); $mainframe = JFactory::getApplication(); $row = new mosDMCategory($database); $row->load($uid); $row->move($inc, "section='{$row->section}'"); $mainframe->redirect('index.php?option=com_docman§ion=categories'); }
/** * Moves the order of a record * * @param integer $ The increment to reorder by */ function orderCategory($uid, $inc) { global $database; $row = new mosDMCategory($database); $row->load($uid); $row->move($inc, "section='{$row->section}'"); mosRedirect('index2.php?option=com_docman§ion=categories'); }