From: Georg Ehrke Date: Thu, 30 May 2013 13:29:38 +0000 (+0200) Subject: load getID3 only if needed X-Git-Tag: v6.0.0alpha2~235^2~123 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f7c80a391d192a15d594c3eaf7909a3d78df1a29;p=nextcloud-server.git load getID3 only if needed --- diff --git a/lib/preview/mp3.php b/lib/preview/mp3.php index 3c6be5c9226..660e9fc3ce4 100644 --- a/lib/preview/mp3.php +++ b/lib/preview/mp3.php @@ -7,8 +7,6 @@ */ namespace OC\Preview; -require_once('getid3/getid3.php'); - class MP3 extends Provider { public function getMimeType() { @@ -16,6 +14,8 @@ class MP3 extends Provider { } public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) { + require_once('getid3/getid3.php'); + $getID3 = new \getID3(); $tmppath = $fileview->toTmpFile($path);