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

remotes/origin/stable45
Michael Gapczynski 12 years ago
parent 25d474579a
commit 3debb67458
  1. 0
      core/css/share.css
  2. 2
      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);

Loading…
Cancel
Save