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