From 0e05a8648404d48fb974bb069e1b465219165a44 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 26 Jul 2011 16:04:57 +0200 Subject: some refactoring of the media player code --- apps/media/appinfo/app.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apps/media/appinfo') 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' )); -- cgit v1.2.3