|
From: Jon O. <jon...@us...> - 2008-02-22 23:23:55
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21977 Modified Files: Tag: core28x mx_functions_core.php Log Message: Updated load_file() method. Bugfix. The wrong file was included. Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.52.2.8 retrieving revision 1.52.2.9 diff -C2 -d -r1.52.2.8 -r1.52.2.9 *** mx_functions_core.php 17 Feb 2008 19:37:15 -0000 1.52.2.8 --- mx_functions_core.php 22 Feb 2008 23:23:48 -0000 1.52.2.9 *************** *** 3043,3046 **** --- 3043,3068 ---- /** + * Load file. + * + * Load additional functions/classes. + * + * @param unknown_type $file + * @param unknown_type $backend + * @param unknown_type $force_shared + */ + function load_file($file = '', $force_shared = false) + { + global $mx_root_path, $phpbb_root_path, $phpEx; + + $path = PORTAL_BACKEND == 'internal' || $force_shared ? $mx_root_path . 'includes/shared/' . PORTAL_BACKEND . '/includes/' : $phpbb_root_path . 'includes/'; + + + if (file_exists($path . $file.'.'.$phpEx)) + { + @include_once($path . $file.'.'.$phpEx); + } + } + + /** * editcp_exists. * |