summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/css/share.css (renamed from apps/files_sharing/css/sharing.css)0
-rw-r--r--lib/public/share.php2
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/css/sharing.css b/core/css/share.css
index a683a24a116..a683a24a116 100644
--- a/apps/files_sharing/css/sharing.css
+++ b/core/css/share.css
diff --git a/lib/public/share.php b/lib/public/share.php
index b4ff205a70c..e24149364f7 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -69,6 +69,8 @@ class Share {
public static function registerBackend($itemType, $class, $collectionOf = null, $supportedFileExtensions = null) {
if (!isset(self::$backendTypes[$itemType])) {
self::$backendTypes[$itemType] = array('class' => $class, 'collectionOf' => $collectionOf, 'supportedFileExtensions' => $supportedFileExtensions);
+ \OC_Util::addScript('core', 'share');
+ \OC_Util::addStyle('core', 'share');
return true;
}
\OC_Log::write('OCP\Share', 'Sharing backend '.$class.' not registered, '.self::$backendTypes[$itemType]['class'].' is already registered for '.$itemType, \OC_Log::WARN);