You need to update ACF. The PHP code you posted in no longer part of ACF4
$this->l10n = array(
'max' => __("Maximum values reached ( {max} values )",'acf'),
'tmpl_li' => '
<li>
<a href="#" data-post_id="<%= post_id %>"><%= title %><span class="acf-button-remove"></span></a>
<input type="hidden" name="<%= name %>[]" value="<%= post_id %>" />
</li>
'
);