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