diff options
author | daMaex <damaex@live.de> | 2018-03-22 12:36:58 (GMT) |
---|---|---|
committer | daMaex <damaex@live.de> | 2018-03-22 12:36:58 (GMT) |
commit | 22b67836d678cea695b977ec648c0aa013339c55 (patch) | |
tree | 5608ec78076189e030c3f011b501caa260d7c06a /src | |
parent | 7e2fcd305c8c9377aa958a3d812cc31bc81c0e32 (diff) | |
download | Doxygen-22b67836d678cea695b977ec648c0aa013339c55.zip Doxygen-22b67836d678cea695b977ec648c0aa013339c55.tar.gz Doxygen-22b67836d678cea695b977ec648c0aa013339c55.tar.bz2 |
added PHP7 support for the search engine on HTML output.
See: http://php.net/manual/en/language.basic-syntax.phptags.php
Diffstat (limited to 'src')
-rw-r--r-- | src/htmlgen.cpp | 8 |
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) |