revisionrenderer: renderContent(): Add modifydatetime var
这个提交包含在:
父节点
af1734e7bf
当前提交
ece1144273
@ -42,6 +42,7 @@ std::string RevisionRenderer::renderContent(std::string content)
|
||||
{
|
||||
dynamicVarsMap["pagetitle"] = parser.extractCommand("pagetitle", content);
|
||||
dynamicVarsMap["createdon"] = utils::toISODate(time(NULL));
|
||||
dynamicVarsMap["modifydatetime"] = utils::toISODateTime(time(NULL));
|
||||
|
||||
std::string resolvedContent = parser.parseDynamics(content, std::bind(&RevisionRenderer::dynamicCallback, this, std::placeholders::_1, std::placeholders::_2));
|
||||
|
||||
@ -60,6 +61,7 @@ std::string RevisionRenderer::renderContent(const Revision &r, std::string_view
|
||||
|
||||
dynamicVarsMap["createdon"] = utils::toISODate(firstRevision.value().timestamp);
|
||||
dynamicVarsMap["pagetitle"] = customTitle;
|
||||
dynamicVarsMap["modifydatetime"] = utils::toISODateTime(r.timestamp);
|
||||
|
||||
std::string resolvedContent = parser.parseDynamics(r.content, std::bind(&RevisionRenderer::dynamicCallback, this, std::placeholders::_1, std::placeholders::_2));
|
||||
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户