use $root instead of $path
This commit is contained in:
parent
4bbbba1dc8
commit
06eca985ce
|
@ -690,7 +690,7 @@ class Preview {
|
||||||
$root = 'files/' . $path;
|
$root = 'files/' . $path;
|
||||||
|
|
||||||
try{
|
try{
|
||||||
$preview = new Preview($userid, $path);
|
$preview = new Preview($userid, $root);
|
||||||
$preview->setFile($file);
|
$preview->setFile($file);
|
||||||
$preview->setMaxX($maxX);
|
$preview->setMaxX($maxX);
|
||||||
$preview->setMaxY($maxY);
|
$preview->setMaxY($maxY);
|
||||||
|
|
Loading…
Reference in New Issue