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