|
From: Florin C B. <ory...@us...> - 2011-03-16 19:02:43
|
Update of /cvsroot/mxbb/core
In directory vz-cvs-4.sog:/tmp/cvs-serv23594
Modified Files:
index.php
Log Message:
small fix for index.php that allows searhing for a block from another path, this will not fix modules such as mx_navmenu
Index: index.php
===================================================================
RCS file: /cvsroot/mxbb/core/index.php,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -d -r1.81 -r1.82
*** index.php 9 Oct 2009 22:04:14 -0000 1.81
--- index.php 16 Mar 2011 19:02:41 -0000 1.82
***************
*** 191,195 ****
if (!@$mx_block->init_error_msg)
{
! include($module_root_path . $mx_block->block_file);
$mx_block->block_contents = ob_get_contents();
}
--- 191,203 ----
if (!@$mx_block->init_error_msg)
{
! if ((@include $module_root_path . $mx_block->block_file) === false)
! {
! $module_root_path = $mx_root_path . $mx_block->module_root_path;
! //this will fix the path
! if ((@include $mx_root_path . $module_root_path . $mx_block->block_file) === false)
! {
! include($mx_root_path . $module_root_path . $mx_block->block_file);
! }
! }
$mx_block->block_contents = ob_get_contents();
}
|