Merge branch 'release' of https://github.com/PrestaShop/PrestaShop into release
This commit is contained in:
+1
-2
@@ -669,8 +669,7 @@ class ToolsCore
|
|||||||
public static function deleteDirectory($dirname, $delete_self = true)
|
public static function deleteDirectory($dirname, $delete_self = true)
|
||||||
{
|
{
|
||||||
$dirname = rtrim($dirname, '/').'/';
|
$dirname = rtrim($dirname, '/').'/';
|
||||||
$files = scandir($dirname);
|
if ($files = scandir($dirname))
|
||||||
if (is_dir($dirname))
|
|
||||||
{
|
{
|
||||||
foreach ($files as $file)
|
foreach ($files as $file)
|
||||||
if ($file != '.' && $file != '..' && $file != '.svn')
|
if ($file != '.' && $file != '..' && $file != '.svn')
|
||||||
|
|||||||
Reference in New Issue
Block a user