diff --git a/bundle/Resources/translations/forms.en.yml b/bundle/Resources/translations/forms.en.yml new file mode 100644 index 00000000..f1463e49 --- /dev/null +++ b/bundle/Resources/translations/forms.en.yml @@ -0,0 +1,12 @@ +'Tags': 'Netgen Tags' +'Tags / All functions': 'Netgen Tags / All functions' +'Tags / Read': 'Netgen Tags / Read tags' +'Tags / View': 'Netgen Tags / Use "/tags/view" page' +'Tags / Add': 'Netgen Tags / Add tags' +'Tags / Addsynonym': 'Netgen Tags / Add synonyms' +'Tags / Edit': 'Netgen Tags / Edit tags' +'Tags / Editsynonym': 'Netgen Tags / Edit synonyms' +'Tags / Delete': 'Netgen Tags / Delete tags' +'Tags / Deletesynonym': 'Netgen Tags / Delete synonyms' +'Tags / Makesynonym': 'Netgen Tags / Convert tag to synonym' +'Tags / Merge': 'Netgen Tags / Merge tags' diff --git a/bundle/View/Builder/TagViewBuilder.php b/bundle/View/Builder/TagViewBuilder.php index 014138cb..c527082b 100644 --- a/bundle/View/Builder/TagViewBuilder.php +++ b/bundle/View/Builder/TagViewBuilder.php @@ -73,7 +73,7 @@ public function __construct( */ public function matches($argument) { - return strpos($argument, 'eztags.controller.tag_view:') !== false; + return is_string($argument) && strpos($argument, 'eztags.controller.tag_view:') !== false; } /**