mirror of https://github.com/kiwix/libkiwix.git
Renamed 404.html to error.html
404.html no longer contains anything specific to the 404 error and will henceforth serve (with some enhancements) as a general purpose error page template.
This commit is contained in:
parent
647118dd5e
commit
89dc9afc28
|
@ -100,14 +100,13 @@ std::unique_ptr<ContentResponse> ContentResponseBlueprint::generateResponseObjec
|
||||||
HTTPErrorHtmlResponse::HTTPErrorHtmlResponse(const InternalServer& server,
|
HTTPErrorHtmlResponse::HTTPErrorHtmlResponse(const InternalServer& server,
|
||||||
const RequestContext& request,
|
const RequestContext& request,
|
||||||
int httpStatusCode,
|
int httpStatusCode,
|
||||||
const std::string& templateStr,
|
|
||||||
const std::string& pageTitleMsg,
|
const std::string& pageTitleMsg,
|
||||||
const std::string& headingMsg)
|
const std::string& headingMsg)
|
||||||
: ContentResponseBlueprint(&server,
|
: ContentResponseBlueprint(&server,
|
||||||
&request,
|
&request,
|
||||||
httpStatusCode,
|
httpStatusCode,
|
||||||
"text/html; charset=utf-8",
|
"text/html; charset=utf-8",
|
||||||
templateStr)
|
RESOURCE::templates::error_html)
|
||||||
{
|
{
|
||||||
kainjow::mustache::list emptyList;
|
kainjow::mustache::list emptyList;
|
||||||
this->m_data = kainjow::mustache::object{
|
this->m_data = kainjow::mustache::object{
|
||||||
|
@ -122,7 +121,6 @@ HTTP404HtmlResponse::HTTP404HtmlResponse(const InternalServer& server,
|
||||||
: HTTPErrorHtmlResponse(server,
|
: HTTPErrorHtmlResponse(server,
|
||||||
request,
|
request,
|
||||||
MHD_HTTP_NOT_FOUND,
|
MHD_HTTP_NOT_FOUND,
|
||||||
RESOURCE::templates::_404_html,
|
|
||||||
"Content not found",
|
"Content not found",
|
||||||
"Not Found")
|
"Not Found")
|
||||||
{
|
{
|
||||||
|
|
|
@ -184,7 +184,6 @@ struct HTTPErrorHtmlResponse : ContentResponseBlueprint
|
||||||
HTTPErrorHtmlResponse(const InternalServer& server,
|
HTTPErrorHtmlResponse(const InternalServer& server,
|
||||||
const RequestContext& request,
|
const RequestContext& request,
|
||||||
int httpStatusCode,
|
int httpStatusCode,
|
||||||
const std::string& templateStr,
|
|
||||||
const std::string& pageTitleMsg,
|
const std::string& pageTitleMsg,
|
||||||
const std::string& headingMsg);
|
const std::string& headingMsg);
|
||||||
|
|
||||||
|
|
|
@ -35,8 +35,8 @@ skin/block_external.js
|
||||||
skin/search_results.css
|
skin/search_results.css
|
||||||
templates/search_result.html
|
templates/search_result.html
|
||||||
templates/no_search_result.html
|
templates/no_search_result.html
|
||||||
|
templates/error.html
|
||||||
templates/400.html
|
templates/400.html
|
||||||
templates/404.html
|
|
||||||
templates/500.html
|
templates/500.html
|
||||||
templates/index.html
|
templates/index.html
|
||||||
templates/suggestion.json
|
templates/suggestion.json
|
||||||
|
|
Loading…
Reference in New Issue