Corrected path to source templates
And changed all files to mode Unix (LF) end of lines
This commit is contained in:
parent
c2c7198455
commit
7608b0e18d
|
@ -29,7 +29,7 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{
|
|||
if (file_exists(DOKU_INC.$this->getConf('templatepath'))) {
|
||||
$source_private = DOKU_INC.$this->getConf('templatepath');
|
||||
} else {
|
||||
$source_private = DOKU_INC.'lib/plugins/userhomepage/lang/'.'/lang/'.$conf['lang'].'userhomepage_private.default';
|
||||
$source_private = DOKU_INC.'lib/plugins/userhomepage/lang/'.$conf['lang'].'/userhomepage_private.default';
|
||||
}
|
||||
if (!copy($source_private, DOKU_INC.$this->getConf('templates_path').'/userhomepage_private.txt')) {
|
||||
// echo ' An error occured while attempting to copy userhomepage_private.default to '.DOKU_INC.$this->getConf('templates_path').'/userhomepage_private.txt';
|
||||
|
@ -39,7 +39,7 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{
|
|||
}
|
||||
// CREATE PUBLIC PAGE TEMPLATES IF NEEDED
|
||||
if (($this->getConf('create_public_page')) && (!file_exists(DOKU_INC.$this->getConf('templates_path').'/userhomepage_public.txt'))) {
|
||||
if (!copy(DOKU_INC.'lib/plugins/userhomepage/lang/'.$conf['lang'].'userhomepage_public.default', DOKU_INC.$this->getConf('templates_path').'/userhomepage_public.txt')) {
|
||||
if (!copy(DOKU_INC.'lib/plugins/userhomepage/lang/'.$conf['lang'].'/userhomepage_public.default', DOKU_INC.$this->getConf('templates_path').'/userhomepage_public.txt')) {
|
||||
// echo ' An error occured while attempting to copy userhomepage_public.default to '.DOKU_INC.$this->getConf('templates_path').'/userhomepage_public.txt';
|
||||
// } else {
|
||||
// echo ' Successfully copied public template.';
|
||||
|
|
Loading…
Reference in a new issue