Sorry for the delayed response, the last days were a little too busy (as always…)
I wasn’t too sure about the mfunc syntax, I think it wasn’t working without both includes, but I might be wrong here – since I had limited time I though better safe than sorry ??
More important, I deployed the changes on another install today and forgot to commit a fix in the posted version:
$blog_id = if(isset($GLOBALS['current_blog_id']))?$GLOBALS['current_blog_id']:$GLOBALS['current_blog']->blog_id;
should be
$blog_id = (isset($GLOBALS['current_blog_id']))?$GLOBALS['current_blog_id']:$GLOBALS['current_blog']->blog_id;