Can someone tell me why this doesn't work like I'd expect it to?
function wp_list_main_blog_pages($arg) {
global $wpdb,$blog_id;
$wpdb->set_blog_id(1);
wp_list_pages($arg);
$wpdb->set_blog_id($blog_id);
}
It outputs the pages from the main blog but it doesn't set the blog id back to the current blog.