|
From: Jon O. <jon...@us...> - 2008-03-14 20:39:30
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32384 Modified Files: mx_functions_core.php Log Message: Updated add_css_file() method Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.86 retrieving revision 1.87 diff -C2 -d -r1.86 -r1.87 *** mx_functions_core.php 11 Mar 2008 20:39:36 -0000 1.86 --- mx_functions_core.php 14 Mar 2008 20:39:24 -0000 1.87 *************** *** 3386,3401 **** * @param string $path */ ! function add_css_file() { ! global $mx_block, $theme; ! $style_path = $theme['template_name'] . '/'; ! if ( file_exists($mx_block->module_root_path . 'templates/' . $style_path . $theme['head_stylesheet']) ) { ! $this->mxbb_css_addup[] = $mx_block->module_root_path . 'templates/' . $style_path . $theme['head_stylesheet']; } else { ! $this->mxbb_css_addup[] = $mx_block->module_root_path . 'templates/subSilver/' . $theme['head_stylesheet']; } } --- 3386,3415 ---- * @param string $path */ ! function add_css_file($filename = '') { ! global $mx_block, $theme, $mx_user; ! switch (PORTAL_BACKEND) { ! case 'internal': ! case 'phpbb2': ! $style_path = $theme['template_name']; ! break; ! case 'phpbb3': ! $style_path = $theme['style_name']; ! break; ! } ! ! if ( file_exists($mx_block->module_root_path . 'templates/' . $style_path.'/'.(!empty($filename) ? $filename : $theme['head_stylesheet']) )) ! { ! $this->mxbb_css_addup[] = $mx_block->module_root_path . 'templates/' . $style_path.'/'.(!empty($filename) ? $filename : $theme['head_stylesheet']); ! } ! else if ( file_exists($mx_block->module_root_path . 'templates/' . $mx_user->cloned_template_name.'/'.(!empty($filename) ? $filename : $mx_user->cloned_template_name)) ) ! { ! $this->mxbb_css_addup[] = $mx_block->module_root_path . 'templates/' . $mx_user->cloned_template_name.'/'.(!empty($filename) ? $filename : $mx_user->cloned_template_name); } else { ! $this->mxbb_css_addup[] = $mx_block->module_root_path . 'templates/'.$mx_user->default_template_name.'/'.(!empty($filename) ? $filename : $mx_user->default_template_name); } } |