Friday 16 February 2007 5:44:48 am
Hello Claudia, Apply these changes (wroks for EZP 3.8.4.): 1. file: access.php, function: "accessType( &$uri, $host, $port, $file )", line ~123: before:
else if ( $match_type == 'element' )
{
$match_index = $ini->variable( 'SiteAccessSettings', 'URIMatchElement' );
$elements = $uri->elements( false );
$elements = array_slice( $elements, 0, $match_index );
$name = implode( '_', $elements );
}
after:
else if ( $match_type == 'element' )
{
$match_index = $ini->variable( 'SiteAccessSettings', 'URIMatchElement' );
$elements = $uri->elements( false );
$elements = array_slice( $elements, 0, $match_index );
//$name = implode( '_', $elements );
$hostname = explode(".",$host);
$name = $hostname[1]."_".implode( '_', $elements );
}
2. file: lib/ezutils/classes/ezsys.php, function: "function addAccessPath( $path )", line ~813: before:
function addAccessPath( $path )
{
if ( isset( $this ) and get_class( $this ) == "ezsys" )
$instance =& $this;
else
$instance =& eZSys::instance();
if ( !is_array( $path ) )
$path = array( $path );
$instance->AccessPath = array_merge( $instance->AccessPath, $path );
}
after:
function addAccessPath( $path )
{
$modified_path = explode("_",$path);
$path = $modified_path[1];
if ( isset( $this ) and get_class( $this ) == "ezsys" )
$instance =& $this;
else
$instance =& eZSys::instance();
if ( !is_array( $path ) )
$path = array( $path );
$instance->AccessPath = array_merge( $instance->AccessPath, $path );
}
That's it. Regards / Mit freundlichen Grüßen, Andreas
|