mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-22 19:09:00 +00:00
Updating installation script
If we re-install PatchTester on a website, the copy of the folder failed because the destination folder already exists. Using the option "force", the JFolder::copy won't generate an exception and copy the files even if the destination folder already exist. Regarding the code of JFolder::copy, it can be useful to put this call in a try/catch ; otherwise the exception stop the all process. Regards, Jerome - Obsidev/HikaShop
This commit is contained in:
parent
ed0ccf0c5f
commit
ab2c81cc8b
@ -147,7 +147,7 @@ class Com_PatchtesterInstallerScript
|
||||
if (is_dir($tmplRoot))
|
||||
{
|
||||
// If there's a failure in copying the overrides, log it to the error array
|
||||
if (!JFolder::copy($source, $destination))
|
||||
if (!JFolder::copy($source, $destination, '', true))
|
||||
{
|
||||
$errorTemplates[] = ucfirst($template);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user