diff options
author | Bernhard Reiter <ockham@raz.or.at> | 2014-10-10 23:18:43 +0200 |
---|---|---|
committer | Bernhard Reiter <ockham@raz.or.at> | 2014-10-14 00:06:07 +0200 |
commit | bc265e8b527c50dc7c63fbff7e43483ed1d2c891 (patch) | |
tree | 0611bc4f7310d7189e93145c492ddd1ace7b4eec /lib | |
parent | 226d7233e17b114ac86d50900f4ee778f6192d7a (diff) | |
download | nextcloud-server-bc265e8b527c50dc7c63fbff7e43483ed1d2c891.tar.gz nextcloud-server-bc265e8b527c50dc7c63fbff7e43483ed1d2c891.zip |
Make loading of tags from DB more explicit.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/tags.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/private/tags.php b/lib/private/tags.php index 5768f19cf21..05fb117036a 100644 --- a/lib/private/tags.php +++ b/lib/private/tags.php @@ -121,14 +121,6 @@ class Tags implements \OCP\ITags { $this->owners = array_merge($this->owners, \OC\Share\Share::getSharedItemsOwners($this->user, $this->type, true)); $this->backend = \OC\Share\Share::getBackend($this->type); } - $this->loadTags($defaultTags); - } - - /** - * Load tags from db. - * - */ - protected function loadTags($defaultTags=array()) { $this->tags = $this->mapper->loadTags($this->owners, $this->type); if(count($defaultTags) > 0 && count($this->tags) === 0) { @@ -413,7 +405,9 @@ class Tags implements \OCP\ITags { } // reload tags to get the proper ids. - $this->loadTags(); + $this->tags = $this->mapper->loadTags($this->owners, $this->type); + \OCP\Util::writeLog('core', __METHOD__.', tags: ' . print_r($this->tags, true), + \OCP\Util::DEBUG); // Loop through temporarily cached objectid/tagname pairs // and save relations. $tags = $this->tags; |