It's wrong. It's from old version.
Should be
return \IPS\Theme::i()->getTemplate( 'plugins', 'core', 'global' )->nbAdsAfterXPostsCustom( $name, $value, $forums->html() );
Reinstall last version
No need this information. Please delete this information and below post