Ensure that cms page always has a non empty html page title.

This commit is contained in:
2016-11-30 15:40:12 +01:00
parent 73572a3e1c
commit 7d50973fd5
2 changed files with 11 additions and 3 deletions

View File

@@ -48,7 +48,11 @@ feature -- Access
variables.force (html_encoded (l_title), "head_title")
variables.force (html_encoded (l_title), "page_title")
else
variables.force ("CMS", "head_title")
if attached variables.item ("site_title") as l_site_title then
variables.force (l_site_title, "head_title")
else
variables.force ("CMS", "head_title")
end
variables.force ("", "page_title")
end
@@ -128,7 +132,7 @@ feature -- Registration
end
note
copyright: "2011-2014, Jocelyn Fiat, Eiffel Software and others"
copyright: "2011-2016, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software