Removed test on null templatepath
This commit is contained in:
parent
cbe6bd4421
commit
9a636083fe
|
@ -35,7 +35,7 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{
|
||||||
// CREATE PRIVATE NAMESPACE START PAGE TEMPLATES IF NEEDED
|
// 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 (($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 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')) {
|
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';
|
// echo ' An error occured while attempting to copy old template to '.DOKU_INC.$this->getConf('templates_path').'/userhomepage_private.txt';
|
||||||
// } else {
|
// } else {
|
||||||
|
|
Loading…
Reference in a new issue