Fixed wrong file names
This commit is contained in:
parent
49f9bb064a
commit
d0e28e1412
|
@ -21,14 +21,14 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{
|
|||
function templates(&$event, $param) {
|
||||
if (!file_exists(DOKU_INC.$this->getConf('templates_path').'/userhomepage_private.txt')) {
|
||||
if (!copy(DOKU_INC.'lib/plugins/userhomepage/userhomepage_private.default', 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';
|
||||
// echo ' An error occured while attempting to copy userhomepage_private.default to '.DOKU_INC.$this->getConf('templates_path').'/userhomepage_private.txt';
|
||||
// } else {
|
||||
// echo ' Successfully copied private template.';
|
||||
}
|
||||
}
|
||||
if (!file_exists(DOKU_INC.$this->getConf('templates_path').'/userhomepage_public.txt')) {
|
||||
if (!copy(DOKU_INC.'lib/plugins/userhomepage/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';
|
||||
// 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