mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
Fix 3.8.4a2 migration patch
This commit is contained in:
@@ -67,6 +67,12 @@ class patch_384alpha2a implements patchInterface
|
|||||||
$uniqid = md5(implode('-', $chunks));
|
$uniqid = md5(implode('-', $chunks));
|
||||||
|
|
||||||
$fs->rename($file->getRealPath(), $app['root.path'].'/config/status/' . $uniqid . '-' . $suffix);
|
$fs->rename($file->getRealPath(), $app['root.path'].'/config/status/' . $uniqid . '-' . $suffix);
|
||||||
|
|
||||||
|
if ($fs->exists($app['root.path'] . '/www/custom/status/' . $file->getFileName())) {
|
||||||
|
$fs->remove($app['root.path'] . '/www/custom/status/' . $file->getFileName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$app['filesystem']->mirror($app['root.path'] . '/config/status/', $app['root.path'] . '/www/custom/status/');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user