/** * Get accounts from db * * @param string $type Type of account (=site) * @return array */ private static function get_accounts_by_mode($type, $post_ID) { if (MicroblogPoster_Poster::is_method_callable('MicroblogPoster_Poster_Ultimate', 'resolve_accounts')) { $accounts = MicroblogPoster_Poster_Ultimate::resolve_accounts($type, $post_ID); } else { $accounts = MicroblogPoster_Poster::get_accounts($type); } return $accounts; }