Commit e1de943a authored by Loparev's avatar Loparev
Browse files

Do not handle jobs which were submitted not through plugins which extend...

Do not handle jobs which were submitted not through plugins which extend ExtendedTranslatorPluginInterface interface
parent 58c140f9
...@@ -863,7 +863,11 @@ function tmgmt_smartling_tmgmt_extension_suit_updated_entity_jobs(array $job_ids ...@@ -863,7 +863,11 @@ function tmgmt_smartling_tmgmt_extension_suit_updated_entity_jobs(array $job_ids
$translator_plugin = $translator->getPlugin(); $translator_plugin = $translator->getPlugin();
if (empty($translator_plugin) || $translator_plugin->getPluginId() !== 'smartling') { if (
empty($translator_plugin) ||
!$translator_plugin instanceof ExtendedTranslatorPluginInterface ||
$translator_plugin->getPluginId() !== 'smartling'
) {
return []; return [];
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment