Removed test on null templatepath

This commit is contained in:
Simon DELAGE 2014-09-08 08:39:23 +02:00
parent cbe6bd4421
commit 9a636083fe

View file

@ -35,7 +35,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'))) {
// If version 3.0.4 was installed, 'templatepath' option isn't empty and points to former template
if (($this->getConf('templatepath') != null) && (file_exists(DOKU_INC.$this->getConf('templatepath')))) {
if (file_exists(DOKU_INC.$this->getConf('templatepath'))) {
if (!copy(DOKU_INC.$this->getConf('templatepath'), DOKU_INC.$this->getConf('templates_path').'/userhomepage_private.txt')) {
// echo ' An error occured while attempting to copy old template to '.DOKU_INC.$this->getConf('templates_path').'/userhomepage_private.txt';
// } else {