aboutsummaryrefslogtreecommitdiffstats
path: root/lib/preview
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-07-29 14:46:20 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-07-29 14:51:06 +0200
commite01bc7de987ddb7d33feb75ad598bdf97c348105 (patch)
tree02983d5ad08ae4141d890739631a8dc216bd4af5 /lib/preview
parent65affdc9b32629ab4692f77ffd4dff77e026b1dc (diff)
downloadnextcloud-server-e01bc7de987ddb7d33feb75ad598bdf97c348105.tar.gz
nextcloud-server-e01bc7de987ddb7d33feb75ad598bdf97c348105.zip
Revert "OC\Preview - outsource static methods"
This reverts commit 14a35267c15115a1e7d2901ddd9b8c5c7e1b9a31.
Diffstat (limited to 'lib/preview')
-rw-r--r--lib/preview/images.php2
-rw-r--r--lib/preview/libreoffice-cl.php10
-rw-r--r--lib/preview/movies.php2
-rw-r--r--lib/preview/mp3.php2
-rw-r--r--lib/preview/msoffice.php12
-rw-r--r--lib/preview/pdf.php2
-rw-r--r--lib/preview/svg.php2
-rw-r--r--lib/preview/txt.php6
-rw-r--r--lib/preview/unknown.php2
9 files changed, 20 insertions, 20 deletions
diff --git a/lib/preview/images.php b/lib/preview/images.php
index 84ab9f1ae43..987aa9aef0a 100644
--- a/lib/preview/images.php
+++ b/lib/preview/images.php
@@ -30,4 +30,4 @@ class Image extends Provider {
}
}
-\OC\PreviewManager::registerProvider('OC\Preview\Image'); \ No newline at end of file
+\OC\Preview::registerProvider('OC\Preview\Image'); \ No newline at end of file
diff --git a/lib/preview/libreoffice-cl.php b/lib/preview/libreoffice-cl.php
index ffe8de505f7..2749c4867e9 100644
--- a/lib/preview/libreoffice-cl.php
+++ b/lib/preview/libreoffice-cl.php
@@ -80,7 +80,7 @@ class MSOfficeDoc extends Office {
}
-\OC\PreviewManager::registerProvider('OC\Preview\MSOfficeDoc');
+\OC\Preview::registerProvider('OC\Preview\MSOfficeDoc');
//.docm, .dotm, .xls(m), .xlt(m), .xla(m), .ppt(m), .pot(m), .pps(m), .ppa(m)
class MSOffice2003 extends Office {
@@ -91,7 +91,7 @@ class MSOffice2003 extends Office {
}
-\OC\PreviewManager::registerProvider('OC\Preview\MSOffice2003');
+\OC\Preview::registerProvider('OC\Preview\MSOffice2003');
//.docx, .dotx, .xlsx, .xltx, .pptx, .potx, .ppsx
class MSOffice2007 extends Office {
@@ -102,7 +102,7 @@ class MSOffice2007 extends Office {
}
-\OC\PreviewManager::registerProvider('OC\Preview\MSOffice2007');
+\OC\Preview::registerProvider('OC\Preview\MSOffice2007');
//.odt, .ott, .oth, .odm, .odg, .otg, .odp, .otp, .ods, .ots, .odc, .odf, .odb, .odi, .oxt
class OpenDocument extends Office {
@@ -113,7 +113,7 @@ class OpenDocument extends Office {
}
-\OC\PreviewManager::registerProvider('OC\Preview\OpenDocument');
+\OC\Preview::registerProvider('OC\Preview\OpenDocument');
//.sxw, .stw, .sxc, .stc, .sxd, .std, .sxi, .sti, .sxg, .sxm
class StarOffice extends Office {
@@ -124,4 +124,4 @@ class StarOffice extends Office {
}
-\OC\PreviewManager::registerProvider('OC\Preview\StarOffice'); \ No newline at end of file
+\OC\Preview::registerProvider('OC\Preview\StarOffice'); \ No newline at end of file
diff --git a/lib/preview/movies.php b/lib/preview/movies.php
index f4452e02fc2..8531050d112 100644
--- a/lib/preview/movies.php
+++ b/lib/preview/movies.php
@@ -39,5 +39,5 @@ if(!is_null(shell_exec('ffmpeg -version'))) {
}
}
- \OC\PreviewManager::registerProvider('OC\Preview\Movie');
+ \OC\Preview::registerProvider('OC\Preview\Movie');
} \ No newline at end of file
diff --git a/lib/preview/mp3.php b/lib/preview/mp3.php
index baa24ad129e..835ff529000 100644
--- a/lib/preview/mp3.php
+++ b/lib/preview/mp3.php
@@ -43,4 +43,4 @@ class MP3 extends Provider {
}
-\OC\PreviewManager::registerProvider('OC\Preview\MP3'); \ No newline at end of file
+\OC\Preview::registerProvider('OC\Preview\MP3'); \ No newline at end of file
diff --git a/lib/preview/msoffice.php b/lib/preview/msoffice.php
index 9f6ea7f74cf..ccf1d674c7a 100644
--- a/lib/preview/msoffice.php
+++ b/lib/preview/msoffice.php
@@ -20,7 +20,7 @@ class DOC extends Provider {
}
-\OC\PreviewManager::registerProvider('OC\Preview\DOC');
+\OC\Preview::registerProvider('OC\Preview\DOC');
*/
class DOCX extends Provider {
@@ -50,7 +50,7 @@ class DOCX extends Provider {
}
-\OC\PreviewManager::registerProvider('OC\Preview\DOCX');
+\OC\Preview::registerProvider('OC\Preview\DOCX');
class MSOfficeExcel extends Provider {
@@ -95,7 +95,7 @@ class XLS extends MSOfficeExcel {
}
-\OC\PreviewManager::registerProvider('OC\Preview\XLS');
+\OC\Preview::registerProvider('OC\Preview\XLS');
class XLSX extends MSOfficeExcel {
@@ -105,7 +105,7 @@ class XLSX extends MSOfficeExcel {
}
-\OC\PreviewManager::registerProvider('OC\Preview\XLSX');
+\OC\Preview::registerProvider('OC\Preview\XLSX');
/* //There is no (good) php-only solution for converting powerpoint documents to pdfs / pngs ...
class MSOfficePowerPoint extends Provider {
@@ -128,7 +128,7 @@ class PPT extends MSOfficePowerPoint {
}
-\OC\PreviewManager::registerProvider('OC\Preview\PPT');
+\OC\Preview::registerProvider('OC\Preview\PPT');
class PPTX extends MSOfficePowerPoint {
@@ -138,5 +138,5 @@ class PPTX extends MSOfficePowerPoint {
}
-\OC\PreviewManager::registerProvider('OC\Preview\PPTX');
+\OC\Preview::registerProvider('OC\Preview\PPTX');
*/ \ No newline at end of file
diff --git a/lib/preview/pdf.php b/lib/preview/pdf.php
index 0d289e9db94..3eabd201156 100644
--- a/lib/preview/pdf.php
+++ b/lib/preview/pdf.php
@@ -36,5 +36,5 @@ if (extension_loaded('imagick')) {
}
}
- \OC\PreviewManager::registerProvider('OC\Preview\PDF');
+ \OC\Preview::registerProvider('OC\Preview\PDF');
}
diff --git a/lib/preview/svg.php b/lib/preview/svg.php
index 5507686af97..bafaf71b15a 100644
--- a/lib/preview/svg.php
+++ b/lib/preview/svg.php
@@ -39,6 +39,6 @@ if (extension_loaded('imagick')) {
}
}
- \OC\PreviewManager::registerProvider('OC\Preview\SVG');
+ \OC\Preview::registerProvider('OC\Preview\SVG');
} \ No newline at end of file
diff --git a/lib/preview/txt.php b/lib/preview/txt.php
index acbf34c5e42..c7b8fabc6b0 100644
--- a/lib/preview/txt.php
+++ b/lib/preview/txt.php
@@ -46,7 +46,7 @@ class TXT extends Provider {
}
}
-\OC\PreviewManager::registerProvider('OC\Preview\TXT');
+\OC\Preview::registerProvider('OC\Preview\TXT');
class PHP extends TXT {
@@ -56,7 +56,7 @@ class PHP extends TXT {
}
-\OC\PreviewManager::registerProvider('OC\Preview\PHP');
+\OC\Preview::registerProvider('OC\Preview\PHP');
class JavaScript extends TXT {
@@ -66,4 +66,4 @@ class JavaScript extends TXT {
}
-\OC\PreviewManager::registerProvider('OC\Preview\JavaScript'); \ No newline at end of file
+\OC\Preview::registerProvider('OC\Preview\JavaScript'); \ No newline at end of file
diff --git a/lib/preview/unknown.php b/lib/preview/unknown.php
index f9f6fe957b2..a31b365722e 100644
--- a/lib/preview/unknown.php
+++ b/lib/preview/unknown.php
@@ -40,4 +40,4 @@ class Unknown extends Provider {
}
}
-\OC\PreviewManager::registerProvider('OC\Preview\Unknown'); \ No newline at end of file
+\OC\Preview::registerProvider('OC\Preview\Unknown'); \ No newline at end of file