|
From: Florin C B. <ory...@us...> - 2011-03-16 19:16:58
|
Update of /cvsroot/mxbb/core
In directory vz-cvs-4.sog:/tmp/cvs-serv29827
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.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** index.php 16 Mar 2011 19:02:41 -0000 1.82
--- index.php 16 Mar 2011 19:16:56 -0000 1.83
***************
*** 195,201 ****
$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);
}
}
--- 195,202 ----
$module_root_path = $mx_root_path . $mx_block->module_root_path;
//this will fix the path
! if ((@include $module_root_path . $mx_block->block_file) === false)
{
! $module_root_path = $mx_block->module_root_path;
! include($module_root_path . $mx_block->block_file);
}
}
|