Adjust to new Template::getPage() returning value, not reference
Esse commit está contido em:
@@ -32,7 +32,7 @@ Response HandlerAllPages::handleRequest(const Request &r)
|
||||
{
|
||||
return errorResponse("No pages", "This wiki does not have any pages yet");
|
||||
}
|
||||
TemplatePage &searchPage = this->templ->getPage("allpages");
|
||||
TemplatePage searchPage = this->templ->getPage("allpages");
|
||||
std::string body = this->templ->renderSearch(resultList);
|
||||
searchPage.setVar("pagelist", body);
|
||||
searchPage.setVar("title", createPageTitle("All pages"));
|
||||
|
Referência em uma nova issue
Block a user