Made correction based on user problem

A user had a strange problem: plugin would not create the template and
there was some kind of infinite loop on login but he found a simple fix
that doesn't seem to have any side effect
This commit is contained in:
Simon DELAGE 2014-10-10 18:20:26 +02:00
parent ec14ae2f79
commit 273933839f
2 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{
// Announce private namespace was created
msg($this->getLang('createdprivatens').' ('.$this->private_page.')', 0);
// Note that we created private page
$created['private'] = true;
$created['private'] = page_exists($this->private_page);
}
// Public page?
// If public page doesn't exists, create it (from template)
@ -90,7 +90,7 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{
// Announce plubic page was created
msg($this->getLang('createdpublicpage').' ('.$this->public_page.')', 0);
// Note that we created public page
$created['public'] = true;
$created['public'] = page_exists($this->public_page);
}
// List IDs that can match wiki start
$wikistart = array($conf['start'], ':'.$conf['start']);

View File

@ -1,7 +1,7 @@
base userhomepage
author Simon Delage
email simon.geekitude@gmail.com
date 2014-09-30
date 2014-10-10
name User Homepage
desc Automatically create user's private namespace and/or public page and redirects users to private namespace on login.
url https://www.dokuwiki.org/plugin:userhomepage