|
From: Jon O. <jon...@us...> - 2006-06-28 21:18:17
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23690/modules/mx_kb Modified Files: kb.php kb_article_reader.php Log Message: Further fixes for "print article view" Index: kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb.php,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** kb.php 28 Jun 2006 20:52:30 -0000 1.34 --- kb.php 28 Jun 2006 21:18:14 -0000 1.35 *************** *** 36,40 **** define( 'IN_PORTAL', true ); $mx_root_path = './../../'; ! $module_root_path = 'modules/mx_kb/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 36,40 ---- define( 'IN_PORTAL', true ); $mx_root_path = './../../'; ! $module_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); *************** *** 49,53 **** if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $mx_root_path . $module_root_path . 'kb/includes/kb_pages.' . $phpEx ); $mx_get_page = new kb_pages(); $mx_get_page->init('kb.php'); --- 49,53 ---- if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $module_root_path . 'kb/includes/kb_pages.' . $phpEx ); $mx_get_page = new kb_pages(); $mx_get_page->init('kb.php'); *************** *** 190,193 **** --- 190,200 ---- } + $template->assign_vars( array( + 'U_PORTAL' => $mx_root_path, + 'L_PORTAL' => "<<", + 'U_KB' => append_sid( this_kb_mxurl() ), + 'L_KB' => $lang['KB_title'] ) + ); + $template->pparse( 'body' ); Index: kb_article_reader.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_article_reader.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** kb_article_reader.php 28 Jun 2006 20:52:30 -0000 1.17 --- kb_article_reader.php 28 Jun 2006 21:18:14 -0000 1.18 *************** *** 36,40 **** define( 'IN_PORTAL', true ); $mx_root_path = './../../'; ! $module_root_path = 'modules/mx_kb/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 36,40 ---- define( 'IN_PORTAL', true ); $mx_root_path = './../../'; ! $module_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); *************** *** 49,53 **** if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $mx_root_path . $module_root_path . 'kb/includes/kb_pages.' . $phpEx ); $mx_get_page = new kb_pages(); $mx_get_page->init('kb_article_reader.php'); --- 49,53 ---- if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $module_root_path . 'kb/includes/kb_pages.' . $phpEx ); $mx_get_page = new kb_pages(); $mx_get_page->init('kb_article_reader.php'); *************** *** 186,189 **** --- 186,196 ---- } + $template->assign_vars( array( + 'U_PORTAL' => $mx_root_path, + 'L_PORTAL' => "<<", + 'U_KB' => append_sid( this_kb_mxurl() ), + 'L_KB' => $lang['KB_title'] ) + ); + $template->pparse( 'body' ); |