Skip to content

Commit 661523d

Browse files
welcoMatticNyholm
authored andcommitted
Fix twig paths for Twig 2.x (#142)
1 parent fa230b6 commit 661523d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Controller/SymfonyProfilerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function editAction(Request $request, $token)
4848
if ($request->isMethod('GET')) {
4949
$translation = $storage->syncAndFetchMessage($message->getLocale(), $message->getDomain(), $message->getKey());
5050

51-
return $this->render('TranslationBundle:SymfonyProfiler:edit.html.twig', [
51+
return $this->render('@Translation/SymfonyProfiler/edit.html.twig', [
5252
'message' => $translation,
5353
'key' => $message->getLocale().$message->getDomain().$message->getKey(),
5454
]);

Controller/WebUIController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function indexAction($configName = null)
7070
}
7171
}
7272

73-
return $this->render('TranslationBundle:WebUI:index.html.twig', [
73+
return $this->render('@Translation/WebUI/index.html.twig', [
7474
'catalogues' => $catalogues,
7575
'catalogueSize' => $catalogueSize,
7676
'maxDomainSize' => $maxDomainSize,
@@ -108,7 +108,7 @@ public function showAction($configName, $locale, $domain)
108108
return strcmp($a->getKey(), $b->getKey());
109109
});
110110

111-
return $this->render('TranslationBundle:WebUI:show.html.twig', [
111+
return $this->render('@Translation/WebUI/show.html.twig', [
112112
'messages' => $messages,
113113
'domains' => $catalogueManager->getDomains(),
114114
'currentDomain' => $domain,
@@ -159,7 +159,7 @@ public function createAction(Request $request, $configName, $locale, $domain)
159159
), $e);
160160
}
161161

162-
return $this->render('TranslationBundle:WebUI:create.html.twig', [
162+
return $this->render('@Translation/WebUI/create.html.twig', [
163163
'message' => $message,
164164
]);
165165
}

0 commit comments

Comments
 (0)