UrlProvider: Add pageByTitle()
此提交包含在:
@@ -63,6 +63,11 @@ std::string UrlProvider::page(std::string pagename)
|
||||
return replaceOnlyPage(config->linkpage, pagename);
|
||||
}
|
||||
|
||||
std::string UrlProvider::pageByTitle(std::string title)
|
||||
{
|
||||
return replaceSingleVar(config->linkpagebytitle, "title", utils::strreplace(title, " ", "-"));
|
||||
}
|
||||
|
||||
std::string UrlProvider::linksHere(std::string pagename)
|
||||
{
|
||||
return replaceOnlyPage(config->linkshere, pagename);
|
||||
|
新增問題並參考
封鎖使用者