Bug correction

When path to old template is emptied in settings
This commit is contained in:
Simon DELAGE 2014-09-14 19:37:37 +02:00
parent 75d25e5295
commit f376cf5f10
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{
// CREATE PRIVATE NAMESPACE START PAGE TEMPLATES IF NEEDED
if (($this->getConf('create_private_ns')) && (!file_exists(DOKU_INC.$this->getConf('templates_path').'/userhomepage_private.txt')) && ($_SERVER['REMOTE_USER'] != null)) {
// If old template exists, use it as source to create userhomepage_private.txt in templates_path
if (file_exists(DOKU_INC.$this->getConf('templatepath'))) {
if ((file_exists(DOKU_INC.$this->getConf('templatepath'))) && ($this->getConf('templatepath') != null)) {
$source = $this->getConf('templatepath');
} else {
$source = 'lib/plugins/userhomepage/lang/'.$conf['lang'].'/userhomepage_private.default';