Skip to content

Commit d9e5b41

Browse files
committed
Error4xxPresenter: Avoid duplicating title
The layout template already includes the title in the body.
1 parent 52aa0d0 commit d9e5b41

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/Templates/Error/403.latte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{block content}
2-
<h1 n:block="title">Access Denied</h1>
2+
{define title}Access Denied{/define}
33

44
<p>You do not have permission to view this page. Please try contact the web
55
site administrator if you believe you should be able to view this page.</p>

app/Templates/Error/404.latte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{block content}
2-
<h1 n:block="title">Page Not Found</h1>
2+
{define title}Page Not Found{/define}
33

44
<p>The page you requested could not be found. It is possible that the address is
55
incorrect, or that the page no longer exists. Please use a search engine to find

app/Templates/Error/410.latte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{block content}
2-
<h1 n:block="title">Page Not Found</h1>
2+
{define title}Page Not Found{/define}
33

44
<p>The page you requested has been taken off the site. We apologize for the inconvenience.</p>
55

app/Templates/Error/4xx.latte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{block content}
2-
<h1 n:block="title">Oops…</h1>
2+
{define title}Oops…{/define}
33

44
<p>Your browser sent a request that this server could not understand or process.</p>
55

0 commit comments

Comments
 (0)