diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-22 11:52:50 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-22 11:57:58 -0400 |
commit | 3debb6745815bb854c477d63090b7df03620ab20 (patch) | |
tree | d4391c8841e08705f10ed094fac51e620861447f /lib | |
parent | 25d474579acd4ead174a83b22f1a3d712e6b682a (diff) | |
download | nextcloud-server-3debb6745815bb854c477d63090b7df03620ab20.tar.gz nextcloud-server-3debb6745815bb854c477d63090b7df03620ab20.zip |
Move share CSS to core, add script and style from inside Share API
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/share.php | 2 |
1 files changed, 2 insertions, 0 deletions
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); |