Plugin doTemplateVar function not called in PHP 5.4. #2