/** * Moves the order of a record * @param integer The increment to reorder by */ function orderMenu($uid, $inc, $option) { global $database; $row = new mosMenu($database); $row->load($uid); $row->move($inc, 'menutype="' . $row->menutype . '" AND parent="' . $row->parent . '"'); mosRedirect('index2.php?option=' . $option . '&menutype=' . $row->menutype); }
/** * Moves the order of a record * @param integer The increment to reorder by */ function orderMenu($uid, $inc, $option) { global $database; $row = new mosMenu($database); $row->load($uid); $row->move($inc, "menutype = " . $database->Quote($row->menutype) . " AND parent = " . (int) $row->parent); // clean any existing cache files mosCache::cleanCache('com_content'); mosRedirect('index2.php?option=' . $option . '&menutype=' . $row->menutype); }