|
From: Jon O. <jon...@us...> - 2008-02-23 19:38:28
|
Update of /cvsroot/mxbb/core/modules/mx_coreblocks In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv939/modules/mx_coreblocks Modified Files: Tag: core28x mx_blockcp.php Log Message: Custom module default style update for panel parameters blockCP stays in current page Index: mx_blockcp.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_coreblocks/mx_blockcp.php,v retrieving revision 1.17.2.2 retrieving revision 1.17.2.3 diff -C2 -d -r1.17.2.2 -r1.17.2.3 *** mx_blockcp.php 3 Feb 2008 19:24:59 -0000 1.17.2.2 --- mx_blockcp.php 23 Feb 2008 19:38:25 -0000 1.17.2.3 *************** *** 19,25 **** // // Start session management // ! $mx_user->init($user_ip, '-999'); // // End session management --- 19,30 ---- // + // Page selector + // + $page_id = $mx_request_vars->request('portalpage', MX_TYPE_INT, 1); + + // // Start session management // ! $mx_user->init($user_ip, $page_id, false); // // End session management *************** *** 27,30 **** --- 32,46 ---- // + // Load and instatiate CORE (page) and block classes + // + $mx_page->init( $page_id ); + + // + // Initiate user style (template + theme) management + // - populate $theme, $images and initiate $template. + // + $mx_user->init_style(); + + // // ********************************************************************** // Read language definition *************** *** 58,63 **** // Initialize template // ! //$blockcptemplate = new mx_Template( $template->root, $board_config, $db ); ! $blockcptemplate = new mx_Template( $mx_root_path . 'templates/'. $theme['template_name'], $board_config, $db ); // --- 74,78 ---- // Initialize template // ! $blockcptemplate = new mx_Template( $mx_root_path . 'templates/'. $theme['template_name'] ); // |