Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
f7c80a39
Commit
f7c80a39
authored
May 30, 2013
by
Georg Ehrke
Browse files
load getID3 only if needed
parent
b944b1c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/preview/mp3.php
View file @
f7c80a39
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment