Added a replacement pattern

For private namespace start page
This commit is contained in:
Simon DELAGE 2014-09-13 12:16:35 +02:00
parent 97c4bcd0e3
commit 75d25e5295
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{
} elseif ($type == 'public') {
$content = io_readFile($this->public_page_template, false);
}
$content = str_replace('@TARGETPRIVATEPAGE@', $this->private_page, $content);
$content = str_replace('@TARGETPRIVATENS@', $this->private_ns, $content);
$content = str_replace('@TARGETPUBLICPAGE@', $this->public_page, $content);
$content = str_replace('@TARGETPUBLICNS@', cleanID($this->getConf('public_pages_ns')), $content);