use $root instead of $path

This commit is contained in:
Georg Ehrke 2013-07-11 11:57:19 +02:00
parent 4bbbba1dc8
commit 06eca985ce

View file

@ -690,7 +690,7 @@ class Preview {
$root = 'files/' . $path;
try{
$preview = new Preview($userid, $path);
$preview = new Preview($userid, $root);
$preview->setFile($file);
$preview->setMaxX($maxX);
$preview->setMaxY($maxY);