Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Several domains

I’m assuming i have to change something here:

// Set the URI and derivitaves
if ( $bb->uri = bb_get_option('uri') ) {
$bb->uri = rtrim($bb->uri, '/') . '/';

// Not used in core anymore, only set here for plugin compatibility
if ( preg_match( '@^(https?://[^/]+)((?:/.*)*/{1,1})$@i', $bb->uri, $matches ) ) {
$bb->domain = $matches[1];
$bb->path = $matches[2];
}
unset($matches);
} else {
// Backwards compatibility
// These were never set in the database
if ( isset($bb->domain) ) {
$bb->domain = rtrim( trim( $bb->domain ), '/' );
}
if ( isset($bb->path) ) {
$bb->path = trim($bb->path);
if ( $bb->path != '/' ) $bb->path = '/' . trim($bb->path, '/') . '/';
}
// We need both to build a uri
if ( $bb->domain && $bb->path ) {
$bb->uri = $bb->domain . $bb->path;
}
}

If someone knows what exactly i need to change, please reply :)

Skip to toolbar