]> source.dussan.org Git - nextcloud-server.git/commitdiff
load getID3 only if needed
authorGeorg Ehrke <georg@ownCloud.com>
Thu, 30 May 2013 13:29:38 +0000 (15:29 +0200)
committerGeorg Ehrke <georg@ownCloud.com>
Thu, 30 May 2013 13:29:38 +0000 (15:29 +0200)
lib/preview/mp3.php

index 3c6be5c9226c345970da2092a4030bc077616cc4..660e9fc3ce449dd94108d17e2cb1500d37978970 100644 (file)
@@ -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);