mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 21:13:26 +00:00
Fix document substitution
This commit is contained in:
@@ -186,8 +186,10 @@ class ToolsController extends Controller
|
||||
try {
|
||||
|
||||
$tempoDir = tempnam(sys_get_temp_dir(), 'substit');
|
||||
|
||||
unlink($tempoDir);
|
||||
mkdir($tempoDir);
|
||||
|
||||
$tempoFile = $tempoDir . DIRECTORY_SEPARATOR . $fileName;
|
||||
|
||||
if (false === rename($file->getPathname(), $tempoFile)) {
|
||||
|
Reference in New Issue
Block a user