mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Try to change write permission before deletion on 80-database.php (delete old and unused files and directories)
git-svn-id: http://piwigo.org/svn/trunk@3107 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -962,6 +962,7 @@ foreach ($files as $file)
|
||||
if (is_file($file))
|
||||
{
|
||||
echo 'Delete file '.$file."\n";
|
||||
@chmod($file, 0777);
|
||||
if (! unlink($file))
|
||||
{
|
||||
echo 'Error on delete file '.$file."\n";
|
||||
@@ -970,6 +971,7 @@ foreach ($files as $file)
|
||||
elseif (is_dir($file))
|
||||
{
|
||||
echo 'Delete directory '.$file."\n";
|
||||
@chmod($file, 0777);
|
||||
if (! rmdir($file))
|
||||
{
|
||||
echo 'Error on directory file '.$file."\n";
|
||||
|
||||
Reference in New Issue
Block a user