A while ago for a project I'm working on we needed to integrate some wordpress function calls into our vanilla forum, so we could better integrate the browsing experience between the two.
We managed that quite easily by including wp_blog_header.php and then keeping Vanilla from shutting down the database connection to wordpress.
This allowed us to use wordpress functions in our vanilla theme , and get tight integration bewteen the two in terms of look and feel.
My question is, we now have internationlized the site and are using multisites for the blog, and now have a french vanilla forum. Is there a variable that is set in php in wordpress at runtime that determines which multisite content is pulled for a function call, and if so what? I've been looking through the code a bit but can't seem to find it yet.