|
From: OryNider <ory...@us...> - 2008-03-15 19:34:43
|
Update of /cvsroot/mxbb/mx_mod_core/root/mx_mod/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30376 Modified Files: functions_core.php Log Message: add_css_file() upgrade Index: functions_core.php =================================================================== RCS file: /cvsroot/mxbb/mx_mod_core/root/mx_mod/includes/functions_core.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** functions_core.php 15 Mar 2008 16:38:51 -0000 1.3 --- functions_core.php 15 Mar 2008 19:34:36 -0000 1.4 *************** *** 2711,2726 **** * @param string $path */ ! function add_css_file() { ! global $mx_block, $theme, $module_root_path; ! $style_path = $theme['template_name'] . '/'; ! if ( file_exists($module_root_path . 'templates/' . $style_path . $theme['head_stylesheet']) ) { ! $this->mxbb_css_addup[] = $module_root_path . 'templates/' . $style_path . $theme['head_stylesheet']; } else { ! $this->mxbb_css_addup[] = $module_root_path . 'templates/subSilver/' . $theme['head_stylesheet']; } } --- 2711,2740 ---- * @param string $path */ ! function add_css_file($filename = '') { ! global $module_root_path, $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($module_root_path . 'templates/' . $style_path.'/'.(!empty($filename) ? $filename : $theme['head_stylesheet']) )) ! { ! $this->mxbb_css_addup[] = $module_root_path . 'templates/' . $style_path.'/'.(!empty($filename) ? $filename : $theme['head_stylesheet']); ! } ! else if ( file_exists($module_root_path . 'templates/' . $mx_user->cloned_template_name.'/'.(!empty($filename) ? $filename : $mx_user->cloned_template_name)) ) ! { ! $this->mxbb_css_addup[] = $module_root_path . 'templates/' . $mx_user->cloned_template_name.'/'.(!empty($filename) ? $filename : $mx_user->cloned_template_name); } else { ! $this->mxbb_css_addup[] = $module_root_path . 'templates/'.$mx_user->default_template_name.'/'.(!empty($filename) ? $filename : $mx_user->default_template_name); } } |