$applicationInstance = Registry::getRegistry()->getInstance('app');
// Get a XML template instance
- $templateInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_template_class', array($applicationInstance));
+ $templateInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_template_class');
// Disable language support
$templateInstance->enableLanguageSupport(false);