From: <vb...@us...> - 2002-09-09 22:30:25
|
Update of /cvsroot/webnotes/webnotes/themes/classic In directory usw-pr-cvs1:/tmp/cvs-serv31397/themes/classic Modified Files: theme_api.php Log Message: - Fixed 0000026: Submitting notes does not go back to the document - Partially Fixed 0000019: Support auto-accepting of notes - Fixed a problem in add_file() in page_api where it was rejecting new pages rather than duplicate pages. Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/classic/theme_api.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- theme_api.php 5 Sep 2002 17:30:30 -0000 1.1 +++ theme_api.php 9 Sep 2002 22:30:22 -0000 1.2 @@ -31,7 +31,7 @@ } # This function is called before printing any notes to the page. - function theme_notes_start( $p_page ) { + function theme_notes_start( $p_page, $p_url ) { global $g_table_border_color, $g_header_color, $g_white_color, $s_user_notes; @@ -53,7 +53,7 @@ # are all included in the associative array that is passed to the # function. The theme should check that a field is defined in # the array before using it. - function theme_notes_echo( $p_page, $p_note_info_array ) { + function theme_notes_echo( $p_page, $p_url, $p_note_info_array ) { global $g_primary_dark_color, $g_primary_light_color, $g_white_color; if ( isset( $p_note_info_array['email'] ) ) { @@ -89,7 +89,7 @@ } # This function is called after all notes are echo'ed. - function theme_notes_end( $p_page ) { + function theme_notes_end( $p_page, $p_url ) { global $g_primary_dark_color, $g_note_add_page, $g_admin_manage_notes, $g_admin_page, $s_add_note_link, $s_manage, $s_admin; @@ -120,9 +120,9 @@ # This function is called if the current page has no notes associated # with it. In this case theme_notes_start() and theme_notes_end() # APIs are not called. - function theme_notes_none( $p_page ) { - theme_notes_start( $p_page ); - theme_notes_end( $p_page ); + function theme_notes_none( $p_page, $p_url ) { + theme_notes_start( $p_page, $p_url ); + theme_notes_end( $p_page, $p_url ); } # This function is called if the current page was not indexed |