summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-14 21:21:37 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-03 14:00:33 +0100
commitd6f1287ae6407a8f1ef0d018fe197e0f920ed192 (patch)
treedb743f2c5022a00366fc45cb950aa8c1c6460317 /lib
parent02525fd98bb3994199ebd877968574610f6898ee (diff)
downloadnextcloud-server-d6f1287ae6407a8f1ef0d018fe197e0f920ed192.tar.gz
nextcloud-server-d6f1287ae6407a8f1ef0d018fe197e0f920ed192.zip
Move file
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Preview/Generator.php (renamed from lib/private/Preview2.php)7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Preview2.php b/lib/private/Preview/Generator.php
index e1f3af6ebdc..6a2e2a4717e 100644
--- a/lib/private/Preview2.php
+++ b/lib/private/Preview/Generator.php
@@ -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();
}