mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Add option to not use URL rewriting
This commit is contained in:
@@ -23,9 +23,9 @@ class BaseController
|
||||
{
|
||||
return $localizationService->Localize($text, ...$placeholderValues);
|
||||
});
|
||||
$container->view->set('U', function($relativePath) use($container)
|
||||
$container->view->set('U', function($relativePath, $isResource = false) use($container)
|
||||
{
|
||||
return $container->UrlManager->ConstructUrl($relativePath);
|
||||
return $container->UrlManager->ConstructUrl($relativePath, $isResource);
|
||||
});
|
||||
|
||||
$this->AppContainer = $container;
|
||||
|
Reference in New Issue
Block a user