summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Cissée <ric@richard-cissee.de>2020-06-21 18:59:42 +0200
committerGitHub <noreply@github.com>2020-06-21 17:59:42 +0100
commitbc20d8ca58baec08996273a59e5bf8a9a50ba583 (patch)
tree15c82e5dfbc11339f3fd2b4b24329a478942e538
parent529fcb43f251194f9f01f094662de82eb48c95dc (diff)
downloadwebtrees-bc20d8ca58baec08996273a59e5bf8a9a50ba583.tar.gz
webtrees-bc20d8ca58baec08996273a59e5bf8a9a50ba583.tar.bz2
webtrees-bc20d8ca58baec08996273a59e5bf8a9a50ba583.zip
Fix use of LocalizationService (#3367)
-rw-r--r--app/Functions/FunctionsEdit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Functions/FunctionsEdit.php b/app/Functions/FunctionsEdit.php
index c238eb38f9..dec082d232 100644
--- a/app/Functions/FunctionsEdit.php
+++ b/app/Functions/FunctionsEdit.php
@@ -285,7 +285,7 @@ class FunctionsEdit
*/
public static function addSimpleTag(Tree $tree, $tag, $upperlevel = '', $label = ''): string
{
- $localization_service = new LocalizationService();
+ $localization_service = app(LocalizationService::class);
$request = app(ServerRequestInterface::class);
$xref = $request->getAttribute('xref', '');