P
P
Pavel Sidorov2020-02-20 20:55:34
1C-Bitrix
Pavel Sidorov, 2020-02-20 20:55:34

How to update public files when installing module updates via updater.php file?

How to update public files when installing module updates via updater.php file?

Now like this. Update only template files

if(IsModuleInstalled('name_module'))
{
  if (is_dir(dirname(__FILE__).'/install/components'))
    $updater->CopyFiles("install/components", "components/");

  if (is_dir(dirname(__FILE__).'/install/js'))
    $updater->CopyFiles("install/js", "js/name_module/");
  
  $updater->CopyFiles("install/wizards/module/swp/site/templates/profimontag", "templates/profimontag");
  $updater->CopyFiles("install/wizards/module/swp/site/public/ru", "/");  //не работает 
}


second rule doesn't work

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question