|
From: OryNider <ory...@us...> - 2008-03-14 13:33:28
|
Update of /cvsroot/mxbb/mx_mod_core/root/mx_mod/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17971 Modified Files: functions_core.php Log Message: $module_root_path Index: functions_core.php =================================================================== RCS file: /cvsroot/mxbb/mx_mod_core/root/mx_mod/includes/functions_core.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions_core.php 10 Mar 2008 06:02:26 -0000 1.1 --- functions_core.php 14 Mar 2008 13:33:21 -0000 1.2 *************** *** 2716,2729 **** 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']; } } --- 2716,2729 ---- 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']; } } *************** *** 2739,2743 **** function add_js_file($path = '') { ! $this->mxbb_js_addup[] = $mx_block->module_root_path . $path; } --- 2739,2744 ---- function add_js_file($path = '') { ! global $module_root_path; ! $this->mxbb_js_addup[] = $module_root_path . $path; } *************** *** 2754,2764 **** { // Provide these variables to be evaluated in the file ! global $mx_block, $theme; if ($read_file) { ! if (file_exists($mx_block->module_root_path . $text)) { ! $data = file_get_contents($mx_block->module_root_path . $text); foreach ($theme as $key => $value) --- 2755,2765 ---- { // Provide these variables to be evaluated in the file ! global $mx_block, $theme, $module_root_path; if ($read_file) { ! if (file_exists($module_root_path . $text)) { ! $data = file_get_contents($module_root_path . $text); foreach ($theme as $key => $value) *************** *** 2771,2775 **** else { ! echo('Warning: Your module is trying to load a file ('.$mx_block->module_root_path . $text .') that doesn\'t exist)'); } } --- 2772,2776 ---- else { ! echo('Warning: Your module is trying to load a file ('.$module_root_path . $text .') that doesn\'t exist)'); } } *************** *** 2792,2802 **** { // Provide these variables to be evaluated in the file ! global $mx_block, $theme; if ($read_file) { ! if (file_exists($mx_block->module_root_path . $text)) { ! $data = file_get_contents($mx_block->module_root_path . $text); foreach ($theme as $key => $value) --- 2793,2803 ---- { // Provide these variables to be evaluated in the file ! global $mx_block, $theme, $module_root_path; if ($read_file) { ! if (file_exists($module_root_path . $text)) { ! $data = file_get_contents($module_root_path . $text); foreach ($theme as $key => $value) *************** *** 2814,2818 **** else { ! echo('Warning: Your module is trying to load a file ('.$mx_block->module_root_path . $text .') that doesn\'t exist)'); } } --- 2815,2819 ---- else { ! echo('Warning: Your module is trying to load a file ('.$module_root_path . $text .') that doesn\'t exist)'); } } |