|
From: Markus P. <mar...@us...> - 2005-03-21 20:59:43
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8715/includes Modified Files: mx_functions_phpbb.php Log Message: Rewritten templates.php script. Now our template class is named mx_Template, it simply extends the phpBB Template class which could be based on the standard one or those in their contrib folder (file or db cache).This is the first step to try to make our template engine also compatible with eXtreme Styles MOD, etc. Index: mx_functions_phpbb.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_phpbb.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mx_functions_phpbb.php 21 Mar 2005 19:33:44 -0000 1.2 --- mx_functions_phpbb.php 21 Mar 2005 20:59:33 -0000 1.3 *************** *** 219,227 **** } ! $template = new Template( $mx_root_path . $template_path . $template_name, $board_config, $db ); } else { ! $template = new Template( $mx_root_path . $template_path . $template_name, $board_config, $db ); } --- 219,227 ---- } ! $template = new mx_Template( $mx_root_path . $template_path . $template_name, $board_config, $db ); } else { ! $template = new mx_Template( $mx_root_path . $template_path . $template_name, $board_config, $db ); } *************** *** 327,331 **** if ( empty( $template ) ) { ! $template = new Template( $mx_root_path . 'templates/' . $board_config['board_template'] ); } if ( empty( $theme ) ) --- 327,331 ---- if ( empty( $template ) ) { ! $template = new mx_Template( $mx_root_path . 'templates/' . $board_config['board_template'] ); } if ( empty( $theme ) ) *************** *** 491,495 **** if ( empty( $template ) ) { ! $template = new Template( $mx_root_path . 'templates/' . $board_config['board_template'] ); } if ( empty( $theme ) ) --- 491,495 ---- if ( empty( $template ) ) { ! $template = new mx_Template( $mx_root_path . 'templates/' . $board_config['board_template'] ); } if ( empty( $theme ) ) |