|
From: Jon O. <jon...@us...> - 2008-02-17 22:10:29
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29769 Modified Files: mx_functions_style.php Log Message: Bugfix, for custom module styles Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** mx_functions_style.php 17 Feb 2008 20:14:26 -0000 1.51 --- mx_functions_style.php 17 Feb 2008 22:10:24 -0000 1.52 *************** *** 170,174 **** function make_filename($filename) { ! global $module_root_path, $mx_root_path, $phpbb_root_path, $theme, $mx_user; switch (PORTAL_BACKEND) --- 170,174 ---- function make_filename($filename) { ! global $module_root_path, $mx_root_path, $phpbb_root_path, $theme, $mx_user, $mx_block; switch (PORTAL_BACKEND) *************** *** 193,197 **** { $this->module_template_path = ''; ! $moduleDefault = !empty($mx_user->loaded_default_styles[$module_root_path]) ? $mx_user->loaded_default_styles[$module_root_path] : $mx_user->default_template_name; if( file_exists($module_root_path . 'templates/' . $style_path . '/' . $filename) ) --- 193,197 ---- { $this->module_template_path = ''; ! $moduleDefault = !empty($mx_user->loaded_default_styles[$mx_block->module_root_path]) ? $mx_user->loaded_default_styles[$mx_block->module_root_path] : $mx_user->default_template_name; if( file_exists($module_root_path . 'templates/' . $style_path . '/' . $filename) ) *************** *** 411,415 **** if( !file_exists($filename) ) { ! die("Template->make_filename(): Error - file $filename does not exist."); } } --- 411,415 ---- if( !file_exists($filename) ) { ! die("Template->make_filename(): Error - file $filename does not exist. <br />Module: $module_root_path <br />Current style: $style_path <br />Cloned style: $mx_user->cloned_template_name <br />Default style: $mx_user->default_template_name <br />Custom module default style: $moduleDefault"); } } |