aboutsummaryrefslogtreecommitdiffstats
path: root/apps/media/appinfo
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-26 16:04:57 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-26 16:05:24 +0200
commit0e05a8648404d48fb974bb069e1b465219165a44 (patch)
tree9c03874b35b81acaf0cb3db77a6c3001924dd019 /apps/media/appinfo
parent243199859b6e1f1d85be7f7c1c0ec38cccaef2f6 (diff)
downloadnextcloud-server-0e05a8648404d48fb974bb069e1b465219165a44.tar.gz
nextcloud-server-0e05a8648404d48fb974bb069e1b465219165a44.zip
some refactoring of the media player code
Diffstat (limited to 'apps/media/appinfo')
-rw-r--r--apps/media/appinfo/app.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/media/appinfo/app.php b/apps/media/appinfo/app.php
index 9eab03b631a..22cb10d7897 100644
--- a/apps/media/appinfo/app.php
+++ b/apps/media/appinfo/app.php
@@ -22,10 +22,9 @@
require_once('apps/media/lib_media.php');
-OC_UTIL::addScript('media','music');
-OC_UTIL::addScript('media','jquery.jplayer.min');
-OC_UTIL::addStyle('media','style');
-OC_UTIL::addStyle('media','jplayer');
+if(OC_APP::getCurrentApp()=='files'){
+ OC_UTIL::addScript('media','files');
+}
OC_APP::register( array( 'order' => 3, 'id' => 'media', 'name' => 'Media' ));