summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-18 15:58:06 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-23 15:10:58 +0100
commit1a262631235445d6ba4d9d0b5bdbc84355e43e5c (patch)
tree8589630937f6e39fe918160f0011b63cb30a041a /lib
parent093efa458c16ea4a7f7fcaf3f98e1e0fb96624c4 (diff)
downloadnextcloud-server-1a262631235445d6ba4d9d0b5bdbc84355e43e5c.tar.gz
nextcloud-server-1a262631235445d6ba4d9d0b5bdbc84355e43e5c.zip
Do not walk over the users directory, but over the list of tagged objects
Way quicker
Diffstat (limited to 'lib')
-rw-r--r--lib/private/tags.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/tags.php b/lib/private/tags.php
index 200ec8c2771..276da9d4b80 100644
--- a/lib/private/tags.php
+++ b/lib/private/tags.php
@@ -34,8 +34,8 @@
namespace OC;
-use \OC\Tagging\Tag,
- \OC\Tagging\TagMapper;
+use \OC\Tagging\Tag;
+use \OC\Tagging\TagMapper;
class Tags implements \OCP\ITags {
@@ -248,6 +248,7 @@ class Tags implements \OCP\ITags {
*
* @param string $tag Tag id or name.
* @return array|false An array of object ids or false on error.
+ * @throws \Exception
*/
public function getIdsForTag($tag) {
$result = null;