summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-04-22 09:49:13 (GMT)
committerGitHub <noreply@github.com>2018-04-22 09:49:13 (GMT)
commit243a3fce87107ac7c6afc7a9d5883ddc007a8534 (patch)
treed1dea9bbfa84d4636f2b259b06c5de8e687cdc00 /src
parent64c77849cbc15b8bfb14bf5dd9ebab9e0d64453f (diff)
parent22b67836d678cea695b977ec648c0aa013339c55 (diff)
downloadDoxygen-243a3fce87107ac7c6afc7a9d5883ddc007a8534.zip
Doxygen-243a3fce87107ac7c6afc7a9d5883ddc007a8534.tar.gz
Doxygen-243a3fce87107ac7c6afc7a9d5883ddc007a8534.tar.bz2
Merge pull request #680 from damaex/master
added PHP7 support for the search engine on HTML output.
Diffstat (limited to 'src')
-rw-r--r--src/htmlgen.cpp8
1 files changed, 4 insertions, 4 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 << "<script language=\"php\">\n\n";
+ t << "<?php\n\n";
t << "$config = array(\n";
t << " 'PROJECT_NAME' => \"" << convertToHtml(projectName) << "\",\n";
t << " 'GENERATE_TREEVIEW' => " << (generateTreeView?"true":"false") << ",\n";
@@ -2372,7 +2372,7 @@ void HtmlGenerator::writeSearchPage()
t << " 'split_bar' => \"" << substitute(substitute(writeSplitBarAsString("search",""), "\"","\\\""), "\n","\\n") << "\",\n";
t << " 'logo' => \"" << substitute(substitute(writeLogoAsString(""), "\"","\\\""), "\n","\\n") << "\",\n";
t << ");\n\n";
- t << "</script>\n";
+ t << "?>\n";
}
ResourceMgr::instance().copyResource("search_functions.php",htmlOutput);
@@ -2403,10 +2403,10 @@ void HtmlGenerator::writeSearchPage()
t << "</div>" << endl;
}
- t << "<script language=\"php\">\n";
+ t << "<?php\n";
t << "require_once \"search_functions.php\";\n";
t << "main();\n";
- t << "</script>\n";
+ t << "?>\n";
// Write empty navigation path, to make footer connect properly
if (generateTreeView)