From 22b67836d678cea695b977ec648c0aa013339c55 Mon Sep 17 00:00:00 2001 From: daMaex Date: Thu, 22 Mar 2018 13:36:58 +0100 Subject: added PHP7 support for the search engine on HTML output. See: http://php.net/manual/en/language.basic-syntax.phptags.php --- src/htmlgen.cpp | 8 ++++---- templates/html/search_functions.php | 4 ++-- templates/html/search_opensearch.php | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index cc3e61d..585a1b2 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -2354,7 +2354,7 @@ void HtmlGenerator::writeSearchPage() if (cf.open(IO_WriteOnly)) { FTextStream t(&cf); - t << "\n"; + t << "?>\n"; } ResourceMgr::instance().copyResource("search_functions.php",htmlOutput); @@ -2403,10 +2403,10 @@ void HtmlGenerator::writeSearchPage() t << "" << endl; } - t << "\n"; + t << "?>\n"; // Write empty navigation path, to make footer connect properly if (generateTreeView) diff --git a/templates/html/search_functions.php b/templates/html/search_functions.php index caa9e3b..7374de9 100644 --- a/templates/html/search_functions.php +++ b/templates/html/search_functions.php @@ -1,4 +1,4 @@ - +?> diff --git a/templates/html/search_opensearch.php b/templates/html/search_opensearch.php index 58ee4ab..95c1c2c 100644 --- a/templates/html/search_opensearch.php +++ b/templates/html/search_opensearch.php @@ -1,4 +1,4 @@ - +?> -- cgit v0.12