summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-04-25 18:16:09 +0200
committerBart Visscher <bartv@thisnet.nl>2013-04-25 18:16:09 +0200
commitbc9792910ae5d714daefd0840d702550b91bae41 (patch)
treecb290275c715d684e891284aa01e445b59188832 /lib/public
parent28d2379c43b31ec362f1e0b4d09fed3ac9812cd2 (diff)
parent80e91e1ac6f8c3c3daa0b8e65ab038ebb57b0794 (diff)
downloadnextcloud-server-bc9792910ae5d714daefd0840d702550b91bae41.tar.gz
nextcloud-server-bc9792910ae5d714daefd0840d702550b91bae41.zip
Merge branch 'master' into doctrine
Conflicts: 3rdparty lib/MDB2/Driver/sqlite3.php lib/db.php
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/files.php10
-rw-r--r--lib/public/share.php3
-rw-r--r--lib/public/util.php1
3 files changed, 13 insertions, 1 deletions
diff --git a/lib/public/files.php b/lib/public/files.php
index 700bf574537..4975bbb7dfa 100644
--- a/lib/public/files.php
+++ b/lib/public/files.php
@@ -56,6 +56,16 @@ class Files {
}
/**
+ * search for files by mimetype
+ *
+ * @param string $query
+ * @return array
+ */
+ public function searchByMime($mimetype) {
+ return(\OC\Files\Filesystem::searchByMime( $mimetype ));
+ }
+
+ /**
* copy the contents of one stream to another
* @param resource source
* @param resource target
diff --git a/lib/public/share.php b/lib/public/share.php
index 8b8a41d47c0..4b337530be8 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -661,6 +661,7 @@ class Share {
}
}
$backend = self::getBackend($itemType);
+ $collectionTypes = false;
// Get filesystem root to add it to the file target and remove from the
// file source, match file_source with the file cache
if ($itemType == 'file' || $itemType == 'folder') {
@@ -1145,7 +1146,7 @@ class Share {
'itemTarget' => $groupItemTarget,
'parent' => $parent,
'shareType' => $shareType,
- 'shareWith' => $uid,
+ 'shareWith' => $shareWith['group'],
'uidOwner' => $uidOwner,
'permissions' => $permissions,
'fileSource' => $fileSource,
diff --git a/lib/public/util.php b/lib/public/util.php
index db07cbcfff3..6744c2d37bd 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -217,6 +217,7 @@ class Util {
*/
public static function getDefaultEmailAddress($user_part) {
$host_name = self::getServerHostName();
+ $host_name = \OC_Config::getValue('mail_domain', $host_name);
$defaultEmailAddress = $user_part.'@'.$host_name;
if (\OC_Mail::ValidateAddress($defaultEmailAddress)) {