Fixed wrong file names

This commit is contained in:
Simon DELAGE 2014-09-03 03:05:30 +02:00
parent 49f9bb064a
commit d0e28e1412
3 changed files with 2 additions and 2 deletions

View file

@ -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.';
}