load getID3 only if needed
This commit is contained in:
parent
b944b1c5d2
commit
f7c80a391d
|
@ -7,8 +7,6 @@
|
||||||
*/
|
*/
|
||||||
namespace OC\Preview;
|
namespace OC\Preview;
|
||||||
|
|
||||||
require_once('getid3/getid3.php');
|
|
||||||
|
|
||||||
class MP3 extends Provider {
|
class MP3 extends Provider {
|
||||||
|
|
||||||
public function getMimeType() {
|
public function getMimeType() {
|
||||||
|
@ -16,6 +14,8 @@ class MP3 extends Provider {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) {
|
public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) {
|
||||||
|
require_once('getid3/getid3.php');
|
||||||
|
|
||||||
$getID3 = new \getID3();
|
$getID3 = new \getID3();
|
||||||
|
|
||||||
$tmppath = $fileview->toTmpFile($path);
|
$tmppath = $fileview->toTmpFile($path);
|
||||||
|
|
Loading…
Reference in New Issue