Skip to content
Snippets Groups Projects
Commit 3debb674 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Move share CSS to core, add script and style from inside Share API

parent 25d47457
Branches
No related tags found
No related merge requests found
File moved
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment