load getID3 only if needed

This commit is contained in:
Georg Ehrke 2013-05-30 15:29:38 +02:00
parent b944b1c5d2
commit f7c80a391d
1 changed files with 2 additions and 2 deletions

View File

@ -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);