1
0
mirror of https://github.com/flarum/core.git synced 2025-02-24 11:13:40 +01:00

added custom view, now needs translation

This commit is contained in:
Daniël Klabbers 2019-06-22 19:40:20 +02:00
parent ce42b5e035
commit fd66722945
2 changed files with 16 additions and 0 deletions

View File

@ -15,4 +15,8 @@ use Exception;
class TokenMismatchException extends Exception
{
public function __construct($message = null, $code = 419, Exception $previous = null)
{
parent::__construct($message, $code, $previous);
}
}

12
views/error/419.blade.php Normal file
View File

@ -0,0 +1,12 @@
@extends('flarum.forum::layouts.basic')
@section('content')
<p>
{{ $message }}
</p>
<p>
<a href="{{ $app->url() }}">
{{ $translator->trans('core.views.error.419_return_link', ['{forum}' => $settings->get('forum_title')]) }}
</a>
</p>
@endsection