diff --git a/.gitignore b/.gitignore index 722bfae..0eff927 100755 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ cache .sass-cache .idea vendor +Build bower_components node_modules Libraries diff --git a/Controller/ApiController.php b/Controller/ApiController.php index e2b2a2e..b55c3cc 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -454,9 +454,9 @@ final class ApiController extends Controller } } - $lastVersionPath = $basePath . '/' . $id . '/' . $lastVersionTimestamp; - $oldPath = $lastVersionPath . '/' . $fileName; - $newPath = $path . '/' . $fileName; + $lastVersionPath = $basePath . '/' . $id . '/' . $lastVersionTimestamp; + $oldPath = $lastVersionPath . '/' . $fileName; + $newPath = $path . '/' . $fileName; if (!\is_file($newPath) || !$toCheck[$index]['handled']) { continue;