Move L10n::t() calls to DI::l10n()->t() calls
This commit is contained in:
@@ -10,6 +10,6 @@ class MethodNotAllowed extends BaseModule
|
||||
{
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
throw new HTTPException\MethodNotAllowedException(L10n::t('Method Not Allowed.'));
|
||||
throw new HTTPException\MethodNotAllowedException(DI::l10n()->t('Method Not Allowed.'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,6 @@ class PageNotFound extends BaseModule
|
||||
{
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
throw new HTTPException\NotFoundException(L10n::t('Page not found.'));
|
||||
throw new HTTPException\NotFoundException(DI::l10n()->t('Page not found.'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user