Multisite pagination with get_posts

The solution to that was pretty simple. I just replaced get_posts() with a simple new WP_query() :

$query = new WP_query($args);

I guess now you have a ready-to-implement function for pagination ^^