Move file
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
02525fd98b
commit
d6f1287ae6
|
@ -109,7 +109,7 @@ class PreviewController extends Controller {
|
|||
return new DataResponse([], Http::STATUS_FORBIDDEN);
|
||||
}
|
||||
|
||||
$preview = new \OC\Preview2(
|
||||
$preview = new \OC\Preview\Generator(
|
||||
$this->root,
|
||||
$this->config,
|
||||
$this->previewManager,
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
namespace OC;
|
||||
|
||||
namespace OC\Preview;
|
||||
|
||||
use OC\Files\View;
|
||||
use OCP\Files\File;
|
||||
|
@ -35,7 +36,7 @@ use OCP\Image;
|
|||
use OCP\IPreview;
|
||||
use OCP\Preview\IProvider;
|
||||
|
||||
class Preview2 {
|
||||
class Generator {
|
||||
//the thumbnail folder
|
||||
const THUMBNAILS_FOLDER = 'thumbnails';
|
||||
|
||||
|
@ -87,7 +88,7 @@ class Preview2 {
|
|||
* @return ISimpleFile
|
||||
* @throws NotFoundException
|
||||
*/
|
||||
public function getPreview($width = -1, $height = -1, $crop = false, $mode = Preview2::MODE_FILL) {
|
||||
public function getPreview($width = -1, $height = -1, $crop = false, $mode = Generator::MODE_FILL) {
|
||||
if (!$this->previewManager->isMimeSupported($this->file->getMimeType())) {
|
||||
throw new NotFoundException();
|
||||
}
|
Loading…
Reference in New Issue