Beispiel #1
0
function orderCats($cat_id, $inc, $option)
{
    global $mainframe;
    $database =& JFactory::getDBO();
    $row = new mtCats($database);
    $row->load($cat_id);
    $row->move($inc, "cat_parent = '{$row->cat_parent}'");
    $mainframe->redirect("index2.php?option={$option}&task=listcats&cat_id={$row->cat_parent}");
}