Adjust to new Template::getPage() returning value, not reference

This commit is contained in:
2021-10-08 00:11:58 +02:00
parent 8ffa64beea
commit 828d827c3d
11 changed files with 13 additions and 12 deletions

View File

@ -121,7 +121,7 @@ Response HandlerPageEdit::handleRequest(PageDao &pageDao, std::string pagename,
}
}
TemplatePage &templatePage = this->templ->getPage("page_creation");
TemplatePage templatePage = this->templ->getPage("page_creation");
templatePage.setVar("actionurl", urlProvider->editPage(pagename));
templatePage.setVar("content", body);
setPageVars(templatePage, pagename);