From 0ac3130b0d5fdea1cb1851e541a7c7b8c878f811 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Thu, 12 Sep 2024 17:18:16 +0400 Subject: [PATCH] Added an extension to an extensionless resource ... so that all resources have extensions and can be automatically categorized as binary or text based on extension (coming next). --- src/server/internalServer.cpp | 2 +- static/resources_list.txt | 2 +- ...url_of_search_results_css => url_of_search_results_css.tmpl} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename static/templates/{url_of_search_results_css => url_of_search_results_css.tmpl} (100%) diff --git a/src/server/internalServer.cpp b/src/server/internalServer.cpp index d908a24e..476e1a18 100644 --- a/src/server/internalServer.cpp +++ b/src/server/internalServer.cpp @@ -959,7 +959,7 @@ std::unique_ptr InternalServer::handle_search_request(const RequestCon } catch(std::runtime_error& e) { // Searcher->search will throw a runtime error if there is no valid xapian database to do the search. // (in case of zim file not containing a index) - const auto cssUrl = renderUrl(m_root, RESOURCE::templates::url_of_search_results_css); + const auto cssUrl = renderUrl(m_root, RESOURCE::templates::url_of_search_results_css_tmpl); HTTPErrorResponse response(request, MHD_HTTP_NOT_FOUND, "fulltext-search-unavailable", "404-page-heading", diff --git a/static/resources_list.txt b/static/resources_list.txt index 8e14c92c..faa53cb3 100644 --- a/static/resources_list.txt +++ b/static/resources_list.txt @@ -38,7 +38,7 @@ templates/catalog_v2_entry.xml templates/catalog_v2_partial_entry.xml templates/catalog_v2_categories.xml templates/catalog_v2_languages.xml -templates/url_of_search_results_css +templates/url_of_search_results_css.tmpl templates/viewer_settings.js templates/no_js_library_page.html templates/no_js_download.html diff --git a/static/templates/url_of_search_results_css b/static/templates/url_of_search_results_css.tmpl similarity index 100% rename from static/templates/url_of_search_results_css rename to static/templates/url_of_search_results_css.tmpl