head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2000.08.28.02.28.21;	author chuck;	state dead;
branches;
next	1.1;

1.1
date	99.07.20.07.36.26;	author jon;	state Exp;
branches;
next	;


desc
@@


1.2
log
@starting to modernize babel - nothing autogenerated, standard
directory/library names, etc.
@
text
@function get_next_upwards (&$request_ref, $id, &$next_ref) {
  if (!$id) return FAILURE;
  
  if (!($topic = $request_ref->topic))
    return error("topic undefined");
  
  if (!(restore_post($request_ref, $id, $topic, $post)))
    return error("could not restore post '$id'");
  
  if (!$post['parent'])
    return FAILURE;
  
  if (!(restore_post($request_ref, $post['parent'], $topic, $parent)))
    return error("could not restore post '$post[parent]'");
  
  if (get_next_in_list($next_ref, $id, $parent['children']))
    return success();
  
  if (!(get_next_upwards($request_ref, $post['parent'], $next_ref)))
    return FAILURE;
  
  return success();
}
@


1.1
log
@
jon: alrighty, babel.php3.in is now broken down into seperate
     function files.  they're jusy dying to be combined into
     objects and seperate source files.
@
text
@@

